1. Can't build dll with eu4.0

I get This error error when compilling a dll with watcom  
 
regex.c(6): Error! E1026: Invalid declarator 
regex.c(6): Error! E1009: Expecting ';' but found 'int' 
 
ecw -dll regex.ew 
SVN Revision 1556 

-- regex.ew 
public function reg_test(object x) 
 
    return x & " REGEX" 
end function 

~tj

new topic     » topic index » view message » categorize

2. Re: Can't build dll with eu4.0

Hm, on OS X, I get

regex.c:25: error: only weak aliases are supported in this configuration 
 
-- Line 25: 
int reg_test() __attribute__ ((alias ("_1reg_test"))); 

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: Can't build dll with eu4.0

jeremy said...

Hm, on OS X, I get

regex.c:25: error: only weak aliases are supported in this configuration 
 
-- Line 25: 
int reg_test() __attribute__ ((alias ("_1reg_test"))); 

Jeremy

AFAICT, this line is specific to OS X only. But the translator should output this when translating for the OSX platform to make this compile on OS X:

int reg_test() attribute ((weak, alias ("_1reg_test")));

I don't think freebsd requires the weak attribute, though I am not 100% sure.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Can't build dll with eu4.0

Thomas said...

I get This error error when compilling a dll with watcom  
 
regex.c(6): Error! E1026: Invalid declarator 
regex.c(6): Error! E1009: Expecting ';' but found 'int' 
 
ecw -dll regex.ew 
SVN Revision 1556 

-- regex.ew 
public function reg_test(object x) 
 
    return x & " REGEX" 
end function 

I've found the solution to the error compiling dll 
int _1reg_test_1(int _x_141) <-- Remove the first int and it compile ok. 
 
Now also get this 
unknown command 'rm' 

new topic     » goto parent     » topic index » view message » categorize

5. Re: Can't build dll with eu4.0

Thomas,

I am able to reproduce that here as well. Can you submit a bug report?

Thank you,

Jeremy

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu