Sign in to follow this  

Compile Errors -- WIP 4

This topic is 4941 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'm trying to compile WIP 4, but I get 4 initial errors about "as_builder.cpp:39 -- friend declaration requires class-key, ie: friend struct asCScriptEngine...and so on for the 3 others". So I change "friend asCScriptEngine" and the other 3 declarations below it to "friend class asCScriptEngine...etc..." and it no longer reports the errors. However, I then get 63 errors, 2 of which are "as_callfunc_dc.cpp:138 -- CallSTDCallFunctionQWord undeclared" and "as_callfunc_dc.cpp:140 -- CallSTDCallFunctionDWord undeclared". The rest of the errors pertain to assembly code, but how do I use the alternative C++ code instead of the assembly? BTW, I'm using mingw, but don't use Dev-C++ because it's buggy. Instead, I use MinGW Developer Studio.

Share this post


Link to post
Share on other sites
You should remove the as_callfunc_dc.cpp from the build. That module is specific for the Dreamcast. You should also remove either the as_callfunc_cpp.cpp or the as_callfunc_x86.cpp from the build as they are duplicating functionality (just written in different languages). If possible use the as_callfunc_x86.cpp since I believe there is a problem with as_callfunc_cpp.cpp that can cause errors when returning objects.

I'm not sure but I think mingw can handle inline assembler. Just make sure the __GNUC__ flag is defined.

I will try compiling the library with mingw myself this weekend just to make sure.

Share this post


Link to post
Share on other sites
Thanks for the help, I got rid of the dreamcast file and x86 then everything worked fine. You're probably right about x86 but I do not have nasm and do not currently wish to deal with it.

Share this post


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