Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: grim_asle on May 15, 2015, 10:11:15 am

Title: problem building a shared library ...
Post by: grim_asle on May 15, 2015, 10:11:15 am
Hello,

i have not been using Code::Blocks now for quite a while ... but i know that this once worked:

I am trying to compile a shared library, which doesn't work for some reason.
I have added some changes and renamed the "main.cpp" file ( ... the name was still there from the time when i first made my library using the "standard" template generated by code bloicks)
After i added my changes, it won't compile anymore ... it only says "no object files ... linking skipped". Thats it.

So maybe there are compiler errors, but they are not shown. Has anybody any idea what i can try or someone encountered that before ??
If i create a new shared lib with the standard content, it compiles, so a compiler error is most likely the reason ... but how can i get the output of the compile steps into the codeblocks output ?? Seems i just forgot it, because these also once were shown in my IDE ...

Best regards and thanks for reading,
...
Title: Re: problem building a shared library ...
Post by: stahta01 on May 15, 2015, 05:18:03 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

After doing a clean project; do a build.
Post the build log if you still have an issue.

Tim S.
Title: Re: problem building a shared library ...
Post by: grim_asle on May 17, 2015, 12:22:11 am

That is all output



-------------- Clean: Debug in UTilities_Smooth ---------------

Cleaned "UTilities_Smooth - Debug"

-------------- Build: Debug in UTilities_Smooth ---------------

Linking stage skipped (build target has no object files to link)
Nothing to be done.



.... doesn' t give me too much idea by the way ... well, i enabled "full console output" in the settings-> compiler -> global ... -> other ... although it does not look like, i agree.

Title: Re: problem building a shared library ...
Post by: stahta01 on May 17, 2015, 12:37:44 am
Make sure the file is part of the project.
Make sure the file has a file extension.

Make sure the file has the property set to compile and link:
 Right click on file in projects
 Choose properties
 Choose tab Build
 Make sure Compile is checked
 Make sure Linked is checked

Tim S.

Title: Re: problem building a shared library ...
Post by: grim_asle on May 18, 2015, 08:12:44 pm
Thanks, that was it ... in these settings for the file, the "build" and "link" weren't active.

Thanks a lot and best regards,
...