• Advertisement
Sign in to follow this  

Untitled

This topic is 4913 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I get this every time i try to compile the DLL in dev-cpp
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\SAPO\Ambiente de trabalho\angelscript_1.8.1BETA1\angelscript\projects\devcpp\dll\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\SAPO\Ambiente de trabalho\angelscript_1.8.1BETA1\angelscript\projects\devcpp\dll\Makefile.win" all
windres.exe -i angelscript_private.rc -I rc -o angelscript_private.res -O coff 

dllwrap.exe --output-def ../../../lib/libangelscript_mingw.def --driver-name c++ --implib ../../../lib/libangelscript_mingw.a ../obj/ac_string.o ../obj/ac_string_util.o ../obj/as_bstr_util.o ../obj/as_builder.o ../obj/as_bytecode.o ../obj/as_callfunc_x86.o ../obj/as_compiler.o ../obj/as_compiler_expressions.o ../obj/as_context.o ../obj/as_datatype.o ../obj/as_objecttype.o ../obj/as_outputbuffer.o ../obj/as_parser.o ../obj/as_scriptcode.o ../obj/as_scriptengine.o ../obj/as_scriptfunction.o ../obj/as_scriptnode.o ../obj/as_tokenizer.o ../obj/as_variablescope.o ../obj/dllmain.o angelscript_private.res -L"C:/Dev-Cpp/lib" ../../../lib/libangelscript.a   -o ../../../lib/angelscript_mingw.dll

../obj/as_builder.o(.text+0xbae):as_builder.cpp: undefined reference to `asCModule::GetNextFunctionId()'
../obj/as_builder.o(.text+0x1caf):as_builder.cpp: undefined reference to `asCModule::AllocGlobalMemory(int)'
../obj/as_builder.o(.text+0x2813):as_builder.cpp: undefined reference to `asCModule::AddScriptFunction(int, char const*, asCDataType const&, asCDataType*, int)'
../obj/as_builder.o(.text+0x2fc6):as_builder.cpp: undefined reference to `asCModule::AddConstantBStr(char const*, int)'
../obj/as_builder.o(.text+0x3034):as_builder.cpp: undefined reference to `asCModule::GetConstantBStr(int)'
../obj/as_compiler_expressions.o(.text+0x170c):as_compiler_expressions.cpp: undefined reference to `asCModule::GetConstantBStr(int)'
../obj/as_context.o(.text+0x3a9):as_context.cpp: undefined reference to `asCModule::ReleaseContextRef()'
../obj/as_context.o(.text+0x458):as_context.cpp: undefined reference to `asCModule::ReleaseContextRef()'
../obj/as_context.o(.text+0x485):as_context.cpp: undefined reference to `asCModule::AddContextRef()'
../obj/as_context.o(.text+0x62e):as_context.cpp: undefined reference to `asCModule::ReleaseContextRef()'
../obj/as_context.o(.text+0x67e):as_context.cpp: undefined reference to `asCModule::AddContextRef()'
../obj/as_scriptengine.o(.text+0x461):as_scriptengine.cpp: undefined reference to `asCModule::~asCModule()'
../obj/as_scriptengine.o(.text+0x721):as_scriptengine.cpp: undefined reference to `asCModule::~asCModule()'
../obj/as_scriptengine.o(.text+0xa24):as_scriptengine.cpp: undefined reference to `asCModule::~asCModule()'
../obj/as_scriptengine.o(.text+0xaac):as_scriptengine.cpp: undefined reference to `asCModule::Discard()'

../obj/as_scriptengine.o(.text+0xaca):as_scriptengine.cpp: undefined reference to `asCModule::AddScriptSection(char const*, char const*, int)'

../obj/as_scriptengine.o(.text+0xb65):as_scriptengine.cpp: undefined reference to `asCModule::Build(asIOutputStream*)'
../obj/as_scriptengine.o(.text+0xb96):as_scriptengine.cpp: undefined reference to `asCModule::Discard()'
../obj/as_scriptengine.o(.text+0xbf6):as_scriptengine.cpp: undefined reference to `asCModule::GetFunctionCount()'
../obj/as_scriptengine.o(.text+0xc2b):as_scriptengine.cpp: undefined reference to `asCModule::GetFunctionIDByName(char const*)'
../obj/as_scriptengine.o(.text+0xc61):as_scriptengine.cpp: undefined reference to `asCModule::GetFunctionIDByDecl(char const*)'
../obj/as_scriptengine.o(.text+0xe16):as_scriptengine.cpp: undefined reference to `asCModule::GetGlobalVarCount()'
../obj/as_scriptengine.o(.text+0xe4b):as_scriptengine.cpp: undefined reference to `asCModule::GetGlobalVarIDByName(char const*)'
../obj/as_scriptengine.o(.text+0xe81):as_scriptengine.cpp: undefined reference to `asCModule::GetGlobalVarIDByDecl(char const*)'
../obj/as_scriptengine.o(.text+0x28f2):as_scriptengine.cpp: undefined reference to `asCModule::GetScriptFunction(int)'
../obj/as_scriptengine.o(.text+0x321f):as_scriptengine.cpp: undefined reference to `asCModule::asCModule(char const*, int, asCScriptEngine*)'

dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: c++ exited with status 1

make.exe: *** [../../../lib/angelscript_mingw.dll] Error 1

Execution terminated
what is wrong and what must i do? i already linked it with libangelcode.a, that i compiled! Please help me, and thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
You haven't exported any function! Did you create the project using the dll wizard? If so for wich option did you choose??

Bas

Share this post


Link to post
Share on other sites
I'm guessing the makefile hasn't been updated for the latest version yet. Try adding the as_module.cpp/h file yourself.

Share this post


Link to post
Share on other sites
Yes, Gyrbo is correct. You need to include as_module.cpp in your project as well.

Only the MSVC6 and MinGW project files are guaranteed to be up-to-date, since they are the only ones I use when testing the library.

Should anyone like to send me updated versions I'll be happy to include them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement