News:

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

Main Menu

Cannot find libs ... but they are there...

Started by msdobrescu, July 23, 2016, 11:27:52 AM

Previous topic - Next topic

stahta01

I just re-read the thread; if the original bug is in the MS Visual Studio IDE then using the Code::Blocks IDE with the MS Visual Studio Compiler is something to do. But, if the original bug is in MS Visual Studio Compiler then the bug will still exist using the CB IDE.

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]

msdobrescu

OK, you see, I try GCC to see if it compiles. It does. Just linking is the problem now.
All the stuff is compiled by GCC now.
The MSVC++ compiler bug is not yet solved - it is related to some template evaluation I think.
So I can't use it for the moment.
If GCC works, I would use it anyway. It is some kind of experiment.

Now, I have the following linking issue, due to extern "C" variables in a file as defined in the project (worked in msvc++ this way):

.objs\Adobe\sdk\Adobe Illustrator CC_2015.3 SDK\illustratorapi\illustrator\ASMemory.o:ASMemory.cpp:(.rdata$.refptr.sSPBasic[.refptr.sSPBasic]+0x0): undefined reference to `sSPBasic'


The header:


#ifndef __jScriptorSuites_H__
#define __jScriptorSuites_H__

...

// Basic suites acquired by all plug-ins:
extern "C" SPBasicSuite*                    sSPBasic;

...
#endif


It is a header, I think it is the issue, should I set something in the project for it and where?




msdobrescu

I think I have found the issue. It seems that having files on several paths (not all in the same root) made the MSVC++ project import to C::B a bit messed up.
It did not include all the needed cpp files, although no message was given in the process.