User forums > Using Code::Blocks
Cannot find libs ... but they are there...
msdobrescu:
As I couldn't find any way to build SpiderMonkey with mingw, I have converted the dll to lib:
--- Code: ---cd M:/dev/jScriptor/Mozilla/SpiderMonkey/mozjs-45.0.2/js/src/build_OPT.OBJ/dist/sdk/lib
M:/Development/codeblocks/TDM-GCC-64/x86_64-w64-mingw32/bin/gendef ../../bin/mozjs-45.dll
M:/Development/codeblocks/TDM-GCC-64/x86_64-w64-mingw32/bin/dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib mozjs-45.a --input-def mozjs-45.def
--- End code ---
The tool says ' -m i386:x86-64' is default.
Now, a full build is attached, as requested.
I did not add system libs so far, I won't, unless it asks for some of their functions.
BlueHazzard:
well now you are missing libraries obviously...
msdobrescu:
I don't know...
I have changed the names of the libs and it says it can not find them.
It finds them, but might be something related to naming?
msdobrescu:
I have found and added all the system libs, but thay are not used, IMHO.
It is an Illustrator plugin without GUI and special OS stuff.
They are just added by the project template "for future use".
The imported lib from the dll seems to be the issue, as all the errors are from it.
Until it doesn't pass that, I won't know it will throw some other errors.
msdobrescu:
Just to illustrate, the generated def file has naming like this:
--- Code: ---?JS_GetPrivate@@YAPEAXPEAVJSObject@@@Z
--- End code ---
while the linker says:
--- Code: ---undefined reference to `__imp__Z13JS_GetPrivateP8JSObject'
--- End code ---
What should I deduce from this?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version