Author Topic: FLTK in codeblocks for mac - error message  (Read 527 times)

Offline MagJ_

  • Single posting newcomer
  • *
  • Posts: 1
FLTK in codeblocks for mac - error message
« on: May 29, 2018, 12:09:40 pm »
Hello guys

I want to learn FLTK. I know Code::Blocks a little and I knew that it works usualy fine with FLTK. Neverthelesse, I am getting this error message poping up, although I use gcc as default compiler:

Quote
-------------- Build: Debug in fltk_test (compiler: GNU GCC Compiler)---------------

g++  -o bin/Debug/fltk_test obj/Debug/main.o   
Undefined symbols for architecture x86_64:
  "fl_define_FL_SHADOW_LABEL()", referenced from:
      _main in main.o
  "Fl::run()", referenced from:
      _main in main.o
  "Fl_Box::Fl_Box(int, int, int, int, char const*)", referenced from:
      _main in main.o
  "Fl_Group::end()", referenced from:
      _main in main.o
  "Fl_Window::show(int, char**)", referenced from:
      _main in main.o
  "Fl_Window::Fl_Window(int, int, char const*)", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 


Any ideas, what I can do to solve this?

Thanks in advance! :)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6310
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sodev

  • Almost regular
  • **
  • Posts: 166
Re: FLTK in codeblocks for mac - error message
« Reply #2 on: May 29, 2018, 02:55:41 pm »
You compile your application in 64 bit and try to link a (most probably) 32 bit library, that doesn't work.