[openbeos] Re: beginners question
- From: "Bruno G. Albuquerque" <bga@xxxxxxxxxxxxx>
- To: <openbeos@xxxxxxxxxxxxx>
- Date: Mon, 22 Mar 2004 13:43:35 -0300 (BRT)
Eric Petit disse:
> On Mon, Mar 22, 2004, Andre Stark wrote:
>> i think this is al little offtopic, but as i am in my first steps in
>> Beos programming i think iwill find help here :-)
>> If i do a compile like "g++ pgm1.cpp pgm2.cpp pgm3.cpp" all works
>> well, if i do the same with "gcc pgm1.cpp pgm2.cpp pgm3.cpp" there are
>> many linker errors.
>> The same problem occurs when i try to use jam, only for expierience.
>> My jam-file then looks like this
>> "Main kap6 : kap6.cpp Student_info.cpp grade.cpp median.cpp ; " and
>> behaves same like gcc.
>> What is the difference between gcc and g++ and how can i tell jam
>> which of them to use?
>
> g++ automatically links to libstdc++, which is needed for C++
> applications. About jam, try something like:
> LINK = g++ ;
> Main test : test.cpp ;
Or he can just add -lstdc++.r4 to the compile line.
-Bruno
- References:
- [openbeos] Re: Reporting for duty
- From: Michael Phipps
- [openbeos] beginners question
- From: Andre Stark
- [openbeos] Re: beginners question
- From: Eric Petit
Other related posts:
- » [openbeos] beginners question
- » [openbeos] Re: beginners question
- » [openbeos] Re: beginners question
- [openbeos] Re: Reporting for duty
- From: Michael Phipps
- [openbeos] beginners question
- From: Andre Stark
- [openbeos] Re: beginners question
- From: Eric Petit