Author Topic: problem building a shared library ...  (Read 3344 times)

Offline grim_asle

  • Multiple posting newcomer
  • *
  • Posts: 14
problem building a shared library ...
« 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,
...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: problem building a shared library ...
« Reply #1 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

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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline grim_asle

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: problem building a shared library ...
« Reply #2 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.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: problem building a shared library ...
« Reply #3 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.

« Last Edit: May 17, 2015, 01:02:24 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline grim_asle

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: problem building a shared library ...
« Reply #4 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,
...