News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

problem building a shared library ...

Started by grim_asle, May 15, 2015, 10:11:15 AM

Previous topic - Next topic

grim_asle

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,
...

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

grim_asle


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.


stahta01

#3
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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

grim_asle

Thanks, that was it ... in these settings for the file, the "build" and "link" weren't active.

Thanks a lot and best regards,
...