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, 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
  #2  
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
  #3  
Old 02-21-2015, 02:46 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
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
  #4  
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

Thread Tools
Display Modes

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 04:02 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3