Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Compiling in MSVB C got it to compile but need help?

Compiling in MSVB C got it to compile but need help?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Wrath   USA  (25 posts)  Bio
Date Mon 02 Aug 2004 12:53 AM (UTC)
Message
Can't figure this out I'm using smaug 1.4a win32 using MSVB C and can compile and build but don't like the all the warnings please help. I get these messages.

C:\smaug\dist\src\special.c(55) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(56) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(57) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(58) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(59) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(61) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(62) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(63) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(64) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(65) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(66) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(67) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(68) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(69) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(70) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(71) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\special.c(72) : warning C4550: expression evaluates to a function which is missing an argument list

Code:
if ( !str_cmp( name, "spec_breath_any" ) ) return spec_breath_any;
if ( !str_cmp( name, "spec_breath_acid" ) ) return spec_breath_acid;
if ( !str_cmp( name, "spec_breath_fire" ) ) return spec_breath_fire;
if ( !str_cmp( name, "spec_breath_frost" ) ) return spec_breath_frost;
if ( !str_cmp( name, "spec_breath_gas" ) ) return spec_breath_gas;
if ( !str_cmp( name, "spec_breath_lightning" ) ) return
spec_breath_lightning;
if ( !str_cmp( name, "spec_cast_adept" ) ) return spec_cast_adept;
if ( !str_cmp( name, "spec_cast_cleric" ) ) return spec_cast_cleric;
if ( !str_cmp( name, "spec_cast_mage" ) ) return spec_cast_mage;
if ( !str_cmp( name, "spec_cast_undead" ) ) return spec_cast_undead;
if ( !str_cmp( name, "spec_executioner" ) ) return spec_executioner;
if ( !str_cmp( name, "spec_fido" ) ) return spec_fido;
if ( !str_cmp( name, "spec_guard" ) ) return spec_guard;
if ( !str_cmp( name, "spec_janitor" ) ) return spec_janitor;
if ( !str_cmp( name, "spec_mayor" ) ) return spec_mayor;
if ( !str_cmp( name, "spec_poison" ) ) return spec_poison;
if ( !str_cmp( name, "spec_thief" ) ) return spec_thief;
return 0;
}

&
stat_obj.c
C:\smaug\dist\src\stat_obj.c(147) : warning C4067: unexpected tokens following preprocessor directive - expected a newline

code:
#undef TODUB(x)

&
tables.c
C:\smaug\dist\src\tables.c(66) : warning C4550: expression evaluates to a function which is missing an argument list
C:\smaug\dist\src\tables.c(67) : warning C4550: expression evaluates to a function which is missing an argument list
Same thing all the wat down to (741)

Code:
if ( !str_cmp( name, "spell_smaug" )) return spell_smaug;
if ( !str_cmp( name, "spell_acid_blast" )) return spell_acid_blast;
if ( !str_cmp( name, "spell_animate_dead" )) return spell_animate_dead;
if ( !str_cmp( name, "spell_astral_walk" )) return spell_astral_walk;
if ( !str_cmp( name, "spell_blindness" )) return spell_blindness;
if ( !str_cmp( name, "spell_burning_hands" )) return spell_burning_hands;

Total of 588 warnings.

Thanks for any advice.

Always remember he who increses knowledge increses sorrow.
And he who thinks mudding is easy is allways sorry.
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 02 Aug 2004 06:29 AM (UTC)

Amended on Mon 02 Aug 2004 06:30 AM (UTC) by Nick Gammon

Message
It helps to search the forum for questions like this. Searching for "4550", which is what you got hundreds of, would have shown up half a dozen posts. This one is pretty relevant:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4433

I'm not sure about the "unexpected tokens following preprocessor directive" one. Sounds like you might have a bit of junk in the source file.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #2 on Wed 04 Aug 2004 12:17 AM (UTC)
Message
Quote:

stat_obj.c
C:\smaug\dist\src\stat_obj.c(147) : warning C4067: unexpected tokens following preprocessor directive - expected a newline

code:
#undef TODUB(x)


This one is easy to solve. The line should simply read:

#undef TODUB
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,067 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.