User forums > Help
Build error - while testing GTK+ project
jantma2:
Hello,
first I'm complete noob in code::blocks as well as programming, so this question seems odd to some of you.
I've started a new GTK+ project - from project list. After that I see some lines of code and I assume this can be compiled, build and executed, just in order to see what it does.
So I've clicked "Build" and I receive this message:
--- Code: ----------------- Build: Debug in Test (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -LC:\GTK\lib -L"C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin" -o bin\Debug\Test.exe obj\Debug\main.o -lgtk-win32-3.0 -lgobject-3.0 -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lgobject-3.0
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
No idea what this tells me (except there is an error).
I'm looking forward to your help.
Thanks in advance.
stahta01:
Please read this FAQ http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Code::Blocks version ?
GTK library version and where did you get the GTK library from ?
Compiler name and version ?
Operating System information ?
Please also read the rules since you are a first time poster http://forums.codeblocks.org/index.php/topic,9996.0.html
and the General FAQs http://wiki.codeblocks.org/index.php/FAQ#General
Tim S.
jantma2:
Hello,
let's try a re-start of that post.
I am running Code::Blocks version 16.01 on Windows 7 64bit.
codeblocks-16.01mingw-setup.exe
The compiler I use is GNU GCC Compiler (no idea how to find the version number).
I got those GTK libraries (don't know which one is right)
gtk+-bundle_3.6.4-20130513_win64
gtk+-bundle_3.6.4-20130513_win32
This was my source:
http://www.tarnyko.net/dl/gtk.htm
From beginning of that week I'm running from error message to error message - beginning of folders not found - libraries not found - changing project script - changing toolchain.
Everything got me a step forward, but this error message blocked my way.
--- Code: ----------------- Build: Debug in Test (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -LC:\GTK\lib -L"C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin" -o bin\Debug\Test.exe obj\Debug\main.o -lgtk-win32-3.0 -lgobject-3.0 -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lgobject-3.0
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
stahta01:
I think that codeblocks-16.01mingw-setup.exe has a 32 bit Mingw TDM GCC Compiler; but, I have no idea if you are using it or NOT.
Please post a full rebuild log And, I might have a chance at guessing from the output.
But, you could also post the Toolchain setting to know what Compiler you are using.
http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps
I only need the "compiler's installation directory" to confirm you are using the 32 bit Mingw TDM GCC Compiler.
Edit2: In some unusual cases, another mingw GCC compiler on the computer will interfere with the one set in the CB Toolchain.
Another FAQ that might help fix your issue is
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F
NOTE: Please use the Project setting (For your project) to fix the issue or in a few weeks; you will have another issue to fix!!
Tim S.
jantma2:
--- Quote from: stahta01 on March 17, 2016, 03:38:40 pm ---
Please post a full rebuild log And, I might have a chance at guessing from the output.
--- End quote ---
Where do I find the full rebuild log - I've postet everything that I found in "Build log"-Tab.
--- Quote from: stahta01 on March 17, 2016, 03:38:40 pm ---
you could also post the Toolchain setting to know what Compiler
--- End quote ---
I hope the attached picture is the information you'd like to have.
Navigation
[0] Message Index
[#] Next page
Go to full version