U
u04f061
Guest
jaz sem z Ubuntu in gcc za c sestavljanje.imam namen po programu,
# include <stdio.h>
# include <math.h>
int main (void) (
float x = 10,0;
float y = 30,0;
printf ( "\ n% f \ t% f \ t% 1f", log (x), log2 (x), sqrt
);
return 0;
)
to je rezultat vrstico ukaz gccEjaz (at) msiddique: ~ / cproj $ gcc-o math math.c
math.c: V funkcijo glavnega:
math.c: 6: opozorilo: nezdružljive implicitno izjavo o vgrajeno v funkcijo log2 / tmp / ccLMCrbz.o: V funkciji "glavni": math.c
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Žalosten" border="0" />
. besedila 0 x4d): undefined reference to `sqrt"
: math.c
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Žalosten" border="0" />
. besedila 0 x61): undefined reference to `log2"
: math.c
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Žalosten" border="0" />
. besedila 0 x6f): undefined reference to `log"
collect2: ld vrne 1 izhod status
Ejaz (at) msiddique: ~ / $ cprojprosim pomoč mi pri reševanju te težave
# include <stdio.h>
# include <math.h>
int main (void) (
float x = 10,0;
float y = 30,0;
printf ( "\ n% f \ t% f \ t% 1f", log (x), log2 (x), sqrt
return 0;
)
to je rezultat vrstico ukaz gccEjaz (at) msiddique: ~ / cproj $ gcc-o math math.c
math.c: V funkcijo glavnega:
math.c: 6: opozorilo: nezdružljive implicitno izjavo o vgrajeno v funkcijo log2 / tmp / ccLMCrbz.o: V funkciji "glavni": math.c
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Žalosten" border="0" />
. besedila 0 x4d): undefined reference to `sqrt"
: math.c
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Žalosten" border="0" />
. besedila 0 x61): undefined reference to `log2"
: math.c
<img src="http://www.edaboard.com/images/smiles/icon_sad.gif" alt="Žalosten" border="0" />
. besedila 0 x6f): undefined reference to `log"
collect2: ld vrne 1 izhod status
Ejaz (at) msiddique: ~ / $ cprojprosim pomoč mi pri reševanju te težave