Problems compiling UOX3 with Visual Studio 2005

Want to discuss changes to the UOX3 source code? Got a code-snippet you'd like to post? Anything related to coding/programming goes here!
Post Reply
ChrisAshtear
UOX3 Newbie
Posts: 1
Joined: Fri Mar 09, 2007 10:29 pm
Has thanked: 0
Been thanked: 0

Problems compiling UOX3 with Visual Studio 2005

Post by ChrisAshtear »

I'm not sure what I'm doing wrong here, but i can't seem to compile UOX3 at all.

i followed the directions in the stickied post, but i still get errors when I'm compiling the javascript bits.

Code: Select all

c:\uo codebase\uox3cvs\uox3\projects\uox3\source\jsapi.h(919) : error C2146: syntax error : missing ';' before identifier 'setMethod'
c:\uo codebase\uox3cvs\uox3\projects\uox3\source\jsapi.h(919) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\uo codebase\uox3cvs\uox3\projects\uox3\source\jsapi.h(919) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
is what i got with the CVS version.
the line of code was: JSSetMethodOp setMethod;

with the one on the download page, i got:

Code: Select all

c:\uo codebase\uox3\uoxjsclasses.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\uo codebase\uox3\uoxjsclasses.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\uo codebase\uox3\uoxjsclasses.h(71) : error C2440: 'initializing' : cannot convert from 'const char [8]' to 'int'
        There is no context in which this conversion is possible
c:\uo codebase\uox3\uoxjsclasses.h(72) : error C2065: 'JSCLASS_IS_EXTENDED' : undeclared identifier
c:\uo codebase\uox3\uoxjsclasses.h(72) : error C2078: too many initializers
and a bunch more errors from that and cjsengine, then everything else compiled fine.

I'm not sure what I'm doing wrong. if anyone can point me in the right direction id really appreciate it.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Odd, I am able to compile the code from the OpenUO CVS without issue on VC 2005 Express.

I will look into why it's generating the issues, but in the meantime you might want to try getting the Spidermonkey source from the OpenUO cvs (under /projects/uox3/spidermonkey).
Post Reply