[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] math.h linker fejl



Niels Langager Ellegaard wrote:

> Sune Fischer <sslug@sslug> writes:
> > > Så vidt jeg kan høre opfører Red Hat sig anderledes end min
> > > debian. Hvis jeg ikke har misforstået dig, vil du gerne kunne skrive
> > > sådan her (Det kan jeg):
> > [..snip..]
> > Ja, men alle kald til sin, cos, pow, tan osv.
> > kender linkeren ikke medmindre man tilføjer flaget -lm.
> > Kan du da det i Debian uden -lm?
>
> Mit svar indeholdt den kode jeg brugte til at kompilere. Den tredie
> linie er linkeren.
> emmy:~/ctest> g++ -c -o del.o del.C
> emmy:~/ctest> g++ -c -o program.o program.C
> emmy:~/ctest> g++   -o program program.o del.o

Har du prøvet at lave dit program i C (ikke C++)? Jeg vil spare dig for det
og fortælle dig at det ikke virker. Hvorfor C++ kompileren ikke behøver at
få -lm skal jeg ikke kunne svare på, men sådan er det bare.

Christian Hemmingsen



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *