Mail Archives: djgpp/1995/11/27/19:55:49
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3456
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!usenet.eel.ufl.edu!nntp1.jpl.nasa.gov!goonsquad.spies.com!uuwest!alcyone!max
|
From: | max AT alcyone DOT darkside DOT com (Erik Max Francis)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: C++ code under djgpp.....
|
Date: | Fri, 24 Nov 95 12:26:27 PST
|
References: | <49581v$3br AT news1 DOT inlink DOT com>
|
Organization: | &tSftDotIotE
|
Lines: | 28
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
mlinvle AT inlink DOT com (mlinvle) writes:
> Yes...one of the first things I noticed about the djgpp compiler...I'm sure
> there's more to it. I have some other code that compiler under Turbo C/C++
> 3.0, but not Watcom 10.5! I didn't think there was *that* much disparity
> among compilers, but I guess there is. I assumed most would follow what
> Stroustrup laid out in his book....
There are three things that come to mind:
1. Use the .cc extension for C++ programs.
2. Use gcc, not the individual compilers. gcc will take care of all
the assembling and linking for you
3. Make sure you link in the right libraries, and put them in the
correct place on the command line.
It should look something like this:
gcc myprog1.cc myprog2.cc myprog3.cc -lgpp -o myprog
Erik Max Francis, &tSftDotIotE || uuwest!alcyone!max, max AT alcyone DOT darkside DOT com
San Jose, California, U.S.A. || 37 20 07 N 121 53 38 W || the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- || 1love || folasade
_Omnia quia sunt, lumina sunt._ || GIGO Omega Psi || http://www.spies.com/max/
"Hands that once picked cotton can now pick Presidents." -- Jesse Jackson
- Raw text -