[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Compiling in MSVB C got it to compile but need help?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Compiling in MSVB C got it to compile but need help?
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Wed 04 Aug 2004 12:17 AM (UTC)  quote  ]
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

SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Mon 02 Aug 2004 06:29 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Wrath   USA  (25 posts)  [Biography] bio
Date Mon 02 Aug 2004 12:53 AM (UTC)  quote  ]
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.
[Go to top] 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.


2,168 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]