godfrey@AssetTag:~$ gcc -g -I/usr/include/freetype2 -L/usr/lib/x86_64-linux-gnu 
-lz -lfreetype freetype-ex.c -o freetype.ex.bin
/tmp/ccJKwlJO.o: In function `dummy':
/home/godfrey/freetype-ex.c:21: undefined reference to `FT_Load_Char'

move the objects before the libraries.

see
https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes?action=show&redirect=OneiricOcelot%2FTechnicalOverview#GCC_4.6_Toolchain

** Changed in: gcc-4.6 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/992337

Title:
  gcc 4.6 fails to compile simple c program with undefined reference
  error, 4.4 compiles fine

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/992337/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to