Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: MagJ_ on May 29, 2018, 12:09:40 pm

Title: FLTK in codeblocks for mac - error message
Post by: MagJ_ 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! :)
Title: Re: FLTK in codeblocks for mac - error message
Post by: stahta01 on May 29, 2018, 01:39:53 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

And, please be sure to read the rules and general FAQ "What Code::Blocks is not" at least once.
http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
http://wiki.codeblocks.org/index.php/FAQ-General#Q:_What_Code::Blocks_is_not.3F (http://wiki.codeblocks.org/index.php/FAQ-General#Q:_What_Code::Blocks_is_not.3F)

Tim S.
Title: Re: FLTK in codeblocks for mac - error message
Post by: sodev 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.