www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++.windows.32-bits - Newbie can't find how to start.

↑ ↓ ← WHMoweryJr <WHMoweryJr netscape.net> writes:
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
↑ ↓ → Bertel Brander <bertel post4.tele.dk> writes:
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