c++.windows.32-bits - Newbie can't find how to start.
- WHMoweryJr (13/13) Jan 15 2006 Newbie can't find how to start.
- Bertel Brander (17/36) Jan 16 2006 The free DMC++ compiler is a command line compiler and
Newbie can't find how to start. I downloaded a free version of DM C++. I have a group of *.h and *.cpp files. Together they make a chess playing program. They have pre-processor directives desgned in for portability. This portability and compiler efficiency need to be tested. What do i do with my *.h & *.cpp files, ie how do i make the object files and then how do i link them with the free digital mars compiler/linker? I can't find the start button anywhere. Bill MSEE
Jan 15 2006
WHMoweryJr wrote:Newbie can't find how to start. I downloaded a free version of DM C++. I have a group of *.h and *.cpp files. Together they make a chess playing program. They have pre-processor directives desgned in for portability. This portability and compiler efficiency need to be tested. What do i do with my *.h & *.cpp files, ie how do i make the object files and then how do i link them with the free digital mars compiler/linker? I can't find the start button anywhere.The free DMC++ compiler is a command line compiler and nothing else, so there is no GUI and no start button. One way to compile the cpp file is to run the command: dmc file_one.cpp file_two.cpp If everything succeeds you end op with file_one.exe You might have to tell dmc where to find the .h files, for this you use the -I switch, e.g: dmc -Iinclude file_one.cpp file_two.cpp You mention preprocessor directives, you specify these with the -D switch, e.g: dmc -DWHATEVER file_one.cpp file_two.cpp Run DMC without arguments to see a list of options. I have a brief note on makefiles here: http://home20.inet.tele.dk/midgaard/tipc20050403.html They might be handy for large projects. /b
Jan 16 2006