Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2015, 12:28 AM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default Compile errors on frest git pull

I pulled the latest source code and regenerated (with c-make) then recompiled (MS Visual Studio 2012 for Windows Desktop). I got 5 errors:

Code:
316 error C2059: syntax error: '{'   file=worlddb.cpp,  line=118,  Project=world

317 error C2143: syntax error: missing ';' before '{'  file=worlddb.cpp,  line=118,  project=world

318 error C2143: syntax error: missing ';' before '}'  file=worlddb.cpp,  line=118,  project=world

56 error C2233: 'entries' : arrays of objects containing zero-size arrays are illegal (..\..\common\patches\rof.cpp)   file=rof_structs.h,  line=4739,  file=common

75 error C2233: 'entries' : arrays of objects containing zero-size arrays are illegal (..\..\common\patches\rof2.cpp)   file=rof2_structs.h,  line=4748,  file=common
I am doing the build RelWithDebInfo, Win32. Any ideas if I am doing something wrong or if these are legitimate errors in the code?
Reply With Quote
  #2  
Old 02-21-2015, 12:42 AM
Greyhelm's Avatar
Greyhelm
Sarnak
 
Join Date: Jul 2009
Location: East Coast
Posts: 35
Default

Pulling the new git and will compile and let you know shortly what I get.

Using C-make and MVS Ultimate 2013, 32Bit

Code:
102 error C2233: 'entries':arrays of object containing zero-size arrays are illegal (C:\EQ\Source2015\common\patches\rof.cpp) rof_structs.h line 4739
121 error C2233:'entries':arrays of objects containing zero-size arrays are illegal (C:\EQ\Source2015\common\patches\rof2.cpp) rof2_structs.h line 4748
153 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK export_client_files
154 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK eqlaunch
155 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK import_client_files
164 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK queryserv
165 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK sharedmemory
218 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK world
518 errorLNK1104:cannot open file '..\..\bin\RelWithDebInfo\common.lib' LINK zone
Cleaned solution 2 twice with same results.
Not sure why I am getting Link errors.

rof_structs.h line 4739
Code:
/*004*/ VeteranRewardEntry entries[0];
rof2_structs.h line 4748
Code:
/*004*/ VeteranRewardEntry entries[0];
Veteran Rewards has something to do with claims I believe which was the last update. But don't take my word for it. Looks like I get the same errors.
Reply With Quote
  #3  
Old 02-21-2015, 01:19 AM
Mortow's Avatar
Mortow
Hill Giant
 
Join Date: Apr 2013
Posts: 215
Default

Thank you. I recompiled on the 16th and it did fine. I tried last night and got the first three errors I listed above. Tonight I get those five.
Reply With Quote
  #4  
Old 02-21-2015, 02:16 AM
Greyhelm's Avatar
Greyhelm
Sarnak
 
Join Date: Jul 2009
Location: East Coast
Posts: 35
Default

Last build I did was the 3rd.. Had no problem with that one either. Recompiled it to make sure and 13 Succeed 0 failed.
Reply With Quote
  #5  
Old 02-21-2015, 02:17 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

The first 3 should be taken care of..I'll pass on the last two
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #6  
Old 02-21-2015, 02:23 AM
Greyhelm's Avatar
Greyhelm
Sarnak
 
Join Date: Jul 2009
Location: East Coast
Posts: 35
Default

Just curious Uleat, what was the problem in the VeteranReward string? the [0] was supposed to be something else? Or am I totally off the mark.
Reply With Quote
  #7  
Old 02-21-2015, 02:25 AM
Greyhelm's Avatar
Greyhelm
Sarnak
 
Join Date: Jul 2009
Location: East Coast
Posts: 35
Default

Nevermind you said your passing on the last two which are the Veteran ones..
Reply With Quote
  #8  
Old 02-21-2015, 02:46 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

Quote:
Originally Posted by Greyhelm View Post
Just curious Uleat, what was the problem in the VeteranReward string? the [0] was supposed to be something else? Or am I totally off the mark.
It actually wasn't a string, because it's not null terminated! But basically I was just using the structs to avoid magic numbers, so commenting them out is fine since I wrote the encoder in a way that didn't use them, GCC/clang have no issue with 0-length arrays in the middle of a struct, but VS did. VS/GCC/clang have no issue with a struct ending with a 0-length array, but VS did if they were chaining 0-length arrays, which there was. All of those scenarios are illegal by the standards though. Although C99 (which C++11 includes) allows a struct to end with an incomplete array definition for a "flexible array member," although I'm not sure if VS can chain those ... Also, we abuse the fuck out of the case that is not standards compliant but works in all three major compilers :P

I was really hoping testing with 2 of the 3, one would yell at me :P
Reply With Quote
  #9  
Old 02-21-2015, 03:19 AM
Greyhelm's Avatar
Greyhelm
Sarnak
 
Join Date: Jul 2009
Location: East Coast
Posts: 35
Default

Just trying to understand so forgive my iditotic questions.. I assume since I took your advice and commented the rewardentries out. My link errors went away also. Which means my common.lib was never created so that was why the LINK errors showed up? Not pretending I know the first about what I am tlaking about since I am learning on the fly.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:07 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3