Setup Xcode and FLTK

后端 未结 1 986
半阙折子戏
半阙折子戏 2021-02-06 19:37

Errors I get when trying to build the first block of code on this page under Xcode

Undefined symbols for architecture x86_64:

"fl_define_FL_SHADO

相关标签:
1条回答
  • 2021-02-06 20:13

    I have found the solution at groups.google.com and below is what I have done:

    1. Change build settings as such:

      Header Search Paths : -I/usr/local/include

      Library Search Paths : /usr/local/lib

    Search Paths

    1. Go to terminal and type fltk-config --ldflags

      You get a line of flags, mine was -L/usr/local/Cellar/fltk/1.3.2_1/lib -lfltk -lpthread -framework Cocoa.

      In Xcode Build settings, paste that in other linker flags

    enter image description here

    1. After these steps Xcode compiled the file successfully.
    0 讨论(0)
提交回复
热议问题