Newbie compiler

Posted by Roffelos on Thu 31 Oct 2002 04:16 AM — 7 posts, 25,520 views.

#0
Ummmm, I'm a newbie compiler, and just getting into modifying the ROM code i downloaded here. I have Cygwin, AND Microsoft Visual C++. People are always telling me to type 'make', but WHERE??!??!!, and how can i...'load' merc.c to be compiler? If you could answer this, or point me to a good website, it would be greatly appreciated.

-Roff
Australia Forum Administrator #1
One level up in the forum is a link to "Detailed information about doing compiles, getting a compiler, making changes, and other useful topics are in the web page How to make changes, including compiling.". Did you read that?

The short answer is under Cygwin, you have a "command" window (white on black where you type commands a line at a time). That is where you type the word "make".

Under Visual C++ you just do a Build.

Under Visual C++ you add the files to a project. Make a new "console" application, and add all the .c files to the project, and then do a Build.
#2
Ahh, i got into the src file with cygwin, i typed make, and it said 'make' command not found...Could you please help me solve this problem?

~Roff
#3
Also, with Microsoft Visual C++, which program do i run to load up the code?
Thanks
~Roff
Australia Forum Administrator #4
The question about "make" has been asked quite a few times. Please search this forum (see search button below) for "cygwin make", and read those posts.

To add the files to MS C++ go to Project -> Add To Project -> Files, and add your .c files.

To be honest, if you are not familiar with Cygwin or MS C++ this is a big project to get started with. Try compiling something small and simple like the "hello world" programs that are in most C books, just to get the hang of using the compiler.

Not having "make" on your system isn't really a ROM problem, it is a system setup problem.
#5
if make is not recognized it probably means your lacking a makefile, make sure the distribution you have has one...
USA #6
Not quite. It indicates the Cygwin install doesn't have the make utility installed. A relatively easy problem to fix.