Society of Robots - Robot Forum
Software => Software => Topic started by: wiley89 on January 06, 2008, 10:48:26 PM
-
As some of you might know, I'm a complete noob. I've just started Sam's C tutorial, and I've come to the point where I'm supposed to write the tradition Hello, World! application. My problem is simple. I'm using the most recent version of Microsoft Visual C++ Express and I can't stand how much GUI and fluff garbage there is. It's so hard to navigate when you don't know what you're doing. Even when I was able to compile the source code, I couldn't find my application. Does anyone know very basic compiler/linker where I can just input the code and get my app? I'm going insane here!
-
I would try GCC if you don't like microsoft visual C++ express, if you use GCC and if it works the same in the command prompt in windows as it does in the linux terminal then all you need to do to set a location to where you wanted your exe file to go by doing this command 'gcc (filename) -L (location wanted)', but for microsoft visual C++ express I have no idea, sorry. :\
-
As some of you might know, I'm a complete noob. I've just started Sam's C tutorial, and I've come to the point where I'm supposed to write the tradition Hello, World! application. My problem is simple. I'm using the most recent version of Microsoft Visual C++ Express and I can't stand how much GUI and fluff garbage there is. It's so hard to navigate when you don't know what you're doing. Even when I was able to compile the source code, I couldn't find my application. Does anyone know very basic compiler/linker where I can just input the code and get my app? I'm going insane here!
welcome to teh typical m$ app. :D
I've used dev-c++ to do teh same thing and it works
-
I tried getting Dev-C++ but I keep getting a build error. This is my whole log, maybe someone could shed some light.
Compiler: Default compiler
Building Makefile: "C:\Users\Kevin\Desktop\Makefile.win"
Executing make...
make.exe -f "C:\Users\Kevin\Desktop\Makefile.win" all
gcc.exe -c hello.c -o hello.o -I"C:/Dev-Cpp/include"
gcc.exe: installation problem, cannot exec `cc1': No such file or directory
make.exe: *** [hello.o] Error 1
Execution terminated
:( :( :( :( :(
-
I'm just going to give up until someone can help me find a solution. I'm seriously at wits end. I didn't have any problem when I was dabbling with Python, but I don't think Python will help me with microcontrollers.
-
try eclipse. try pretyt much any compiler you can find.
reinstal teh ones you have, and clean up teh registry and files left behind by them. ("your uninstaller 2006" does that)
-
Okay I got microsoft visual C++ to compile my C file, but the only way I can run it is with ctr-f5. The only reason I know about that command is because I checked out a tutorial for an earlier version of the compiler, one that seemed to make more sense (everything gets harder for no reason!!!).
Now my problem is that I can't locate my .exe files. I build it, I compile it, I run it with the run command, but for the life of me I cannot find the .exe
:o HELP ???
-
go to my computer and right click>search all your drives
-
I'm able to locate and app but the app is named for the project, not the object. why cant the compiler just do its job and give me my .exe? ahhhh
i dont want projects or a million options. input source, output binaries. why isnt it that simple?
-
I can vc++ and it stores my project executables in My Documents --> Visual Studio 2008 -->Projects --> 'name of project' --> Debug
-
Okay, now the app is working. New problem.
The executable is the most basic of programs, the Hello World program. When I execute it the console flashes on, I barely have time to read the message, and then the console turns itself off again. Urg.
-
add the command 'sleep(3);' to create a 3 second pause, this will give you time to read the output.
(or run the program from the command line start ->run->cmd)
Under normal operations when a program exits it also kills the window.
-
so just sleep(3) in before teh closing bracket and it's all?
-
If you include stdio.h in your headers, then you can use 'getchar()' to stop the program.
Then it will start again when you press enter.
-
so just sleep(3) in before teh closing bracket and it's all?
isn't it " Sleep(3000); "? you mean? without the capital letter it doesn't work. and the amount is in millisec, so with only 3 you still won't see anything.