Very strange linker behavior

后端 未结 8 2089
猫巷女王i
猫巷女王i 2020-12-07 17:56

This is strange because I was able to get the error below to go away by removing the reference to libm.

gcc -o example example.o -Wl -L/home/kensey/cdev/lib          


        
8条回答
  •  天涯浪人
    2020-12-07 18:17

    Use this:

    administrator@administrator-Veriton-M200-H81:~/ishan$ gcc polyscanline1.cpp -lglut -lGLU -lGL -lm
    

提交回复
热议问题