gcc pathing problem?
Colin Watson
cjwatson at ubuntu.com
Wed Jun 15 21:52:58 UTC 2005
On Wed, Jun 15, 2005 at 06:42:55PM +0300, ZIYAD A. M. AL-BATLY wrote:
> How do you compile your code? I used your code and it worked perfectly.
>
> Here's how I compiled it:
> g++ -o code1 code.cpp
This is correct and portable.
> Here's another way that also works (only with GCC 3.0 or newer):
> gcc -o code2 -lstdc++ code.cpp
This will work on some architectures, but not on others.
Cheers,
--
Colin Watson [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list