Compilation error
| General Software Discuss, Compilation error at Software forum; If anyone here has some free time on their hands, I keep getting a trivial compilation error when trying to make the a file from the following website: http://www.chiark.greenend.org.uk/~o...starcraft.html Its a trivial error, but I do not know if it is because I am compiling in XP, becaus ethe author |
| If anyone here has some free time on their hands, I keep getting a trivial compilation error when trying to make the a file from the following website: http://www.chiark.greenend.org.uk/~o...starcraft.html Its a trivial error, but I do not know if it is because I am compiling in XP, becaus ethe author mentions of a problem in 2k and both are NT based, or if its a header file as the compilation error states: C:\_ALL_\Borland\BCC55\Bin>make -fMakefile.BORLAND MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Could Not Find C:\_ALL_\Borland\BCC55\Bin\bnetd\server.obj bcc32 -v -y -O2 -d -j2 -w-8060 -w-8057 -DWIN32 -DBNETD_DEFAULT_CONF_FILE =\"C:\Bnetd\etc\bnetd.conf\" -DHAVE_CONFIG_H -I. -c -o.\bnetd\server.obj .\bnetd \server.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland .\bnetd\server.c: Fatal F1003 .\stdcomp.h 5: Error directive: Must use C++ for STDCOMP.H *** 1 errors in Compile *** ** error 1 ** deleting .\bnetd\server.obj Any ideas anyone???
__________________ My Rig: Antec P160 Case Corsair CMPSU-850TX 850W ATX SLI Ready CrossFire Ready Active PFC P4 3.0E GHz running WinXP w/SP2 Scythe SCMN-1000 Heatsink w/Arctic Silver 5 ASUS P4C800 Deluxe Motherboard 2GB RAM - Corsair XMS TWINX2048 (2x1GB) 3200C2Pro CL2.0 NVIDIA GeForce 6800 GT AGP 2 - WD 37GB Raptor's (in RAID 0) via onboard Promise controller WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s Lite-On LTR-52246S 6S0F (IDE1 Master) Lite-On JLMS XJ-HD166S DS1C (IDE1 Slave) NEC 3500AG 2.TC Quiet (IDE2 Master) Lite-On SOHW 1673S JS07 (via USB 2.0 to IDE) Found a Solution here helpful? Like the forum's? Well then, what are you waiting for JOIN NOW!!! |
- Today (MyCE Staff)
- Posts: 15,596
| |
| my first result on google. Question: When I compile my code, I receive the following error message: "Fatal F1003 c:BorlandBcc55includestdcomp.h 5: Error directive: Must use C++ for STDCOMP.H" What does this error message mean? Answer: The problem is that BCC32 is compiling your code for C yet you have included a C++ header file. The STDCOMP.H header file contains preprocessor directives that make sure it is being compiled for C++ and not C. The Borland compiler determines whether to compile for C++ or for C based on your source file's extension. If your file has a ".CPP" file extension, it will be compiled as C++ code. If your file has a ".C" extension, or an extension the compiler does not recognize, the file will be compiled a C code. To resolve this problem, make sure your source file extension reflects how you would like the file compiled. If you are encountering this specific error, it is likely that your source code has a ".C" extension and should be ".CPP"
__________________ www.livingwithoutmicrosoft.org last 5 cd's Avril Lavigne - Whatever the new one is called Lucky Boys Confusion - Throwing the Game lostprophets - Start Something Story of the Year - Page Avenue Flaming Lips - Yoshimi Battles the Pink Robots Don't let schooling interfere with your education. -Mark Twain |
| Yes I got that also from google, but trying to track down one file to rename to cpp rather than c is very hard because there are like a hundred as part fo the header code.
__________________ My Rig: Antec P160 Case Corsair CMPSU-850TX 850W ATX SLI Ready CrossFire Ready Active PFC P4 3.0E GHz running WinXP w/SP2 Scythe SCMN-1000 Heatsink w/Arctic Silver 5 ASUS P4C800 Deluxe Motherboard 2GB RAM - Corsair XMS TWINX2048 (2x1GB) 3200C2Pro CL2.0 NVIDIA GeForce 6800 GT AGP 2 - WD 37GB Raptor's (in RAID 0) via onboard Promise controller WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s Lite-On LTR-52246S 6S0F (IDE1 Master) Lite-On JLMS XJ-HD166S DS1C (IDE1 Slave) NEC 3500AG 2.TC Quiet (IDE2 Master) Lite-On SOHW 1673S JS07 (via USB 2.0 to IDE) Found a Solution here helpful? Like the forum's? Well then, what are you waiting for JOIN NOW!!! |
| the error occurs during the compile of server.c, within the \bnetd\ directory, from the error log you've posted.
__________________ www.livingwithoutmicrosoft.org last 5 cd's Avril Lavigne - Whatever the new one is called Lucky Boys Confusion - Throwing the Game lostprophets - Start Something Story of the Year - Page Avenue Flaming Lips - Yoshimi Battles the Pink Robots Don't let schooling interfere with your education. -Mark Twain |
| Actually I think by the error log stdcomp.h is the header that has a #include somewhere for a .c file when it should be a .cpp file because server.c is just the result file which then is included into another compile. Its delelted because of a failed compilation. Its too confusing and I'm gonna give up on it. Maybe one of my friends can come by and take a look.
__________________ My Rig: Antec P160 Case Corsair CMPSU-850TX 850W ATX SLI Ready CrossFire Ready Active PFC P4 3.0E GHz running WinXP w/SP2 Scythe SCMN-1000 Heatsink w/Arctic Silver 5 ASUS P4C800 Deluxe Motherboard 2GB RAM - Corsair XMS TWINX2048 (2x1GB) 3200C2Pro CL2.0 NVIDIA GeForce 6800 GT AGP 2 - WD 37GB Raptor's (in RAID 0) via onboard Promise controller WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s Lite-On LTR-52246S 6S0F (IDE1 Master) Lite-On JLMS XJ-HD166S DS1C (IDE1 Slave) NEC 3500AG 2.TC Quiet (IDE2 Master) Lite-On SOHW 1673S JS07 (via USB 2.0 to IDE) Found a Solution here helpful? Like the forum's? Well then, what are you waiting for JOIN NOW!!! |
| if you are compiling server.c - a C file, and using stdcomp.h - a c++ header.....
__________________ www.livingwithoutmicrosoft.org last 5 cd's Avril Lavigne - Whatever the new one is called Lucky Boys Confusion - Throwing the Game lostprophets - Start Something Story of the Year - Page Avenue Flaming Lips - Yoshimi Battles the Pink Robots Don't let schooling interfere with your education. -Mark Twain |
| I seemed to always get some sort of error with borland so I switched to DEV-C++ and I also use codewarrior. C/warrior is pretty expensive but I know how to get it for free legally if you want to try it
__________________ there's always a way! cd protections are illegal! what's that smell! Join Us! Here at cdfreaks "Space. . . It seems to go on and on forever. But then you get to the end and a gorilla starts throwing barrels at you." Chat Quotes [4:44pm] * @taHkroW dubs SK the best king of the world. |
| ehh, the heck with this, I give up, my friend will just have to learn to VPN to get starcraft to work off our broadband on direct play. Why can't blizzard just make a patch or update to do so. The game is so old and broadband is the thing now, and its not like the game still sells so blizzard won't really lose money off sales to the pirates that do exist with same serials of this game. It makes it so unfair to those of us who actually bought the game.
__________________ My Rig: Antec P160 Case Corsair CMPSU-850TX 850W ATX SLI Ready CrossFire Ready Active PFC P4 3.0E GHz running WinXP w/SP2 Scythe SCMN-1000 Heatsink w/Arctic Silver 5 ASUS P4C800 Deluxe Motherboard 2GB RAM - Corsair XMS TWINX2048 (2x1GB) 3200C2Pro CL2.0 NVIDIA GeForce 6800 GT AGP 2 - WD 37GB Raptor's (in RAID 0) via onboard Promise controller WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s WD Caviar Black WD7501AALS 750GB 7200 RPM 32MB Cache SATA 3.0Gb/s Lite-On LTR-52246S 6S0F (IDE1 Master) Lite-On JLMS XJ-HD166S DS1C (IDE1 Slave) NEC 3500AG 2.TC Quiet (IDE2 Master) Lite-On SOHW 1673S JS07 (via USB 2.0 to IDE) Found a Solution here helpful? Like the forum's? Well then, what are you waiting for JOIN NOW!!! |
| Quote:
__________________ www.livingwithoutmicrosoft.org last 5 cd's Avril Lavigne - Whatever the new one is called Lucky Boys Confusion - Throwing the Game lostprophets - Start Something Story of the Year - Page Avenue Flaming Lips - Yoshimi Battles the Pink Robots Don't let schooling interfere with your education. -Mark Twain |
| Quote:
__________________ there's always a way! cd protections are illegal! what's that smell! Join Us! Here at cdfreaks "Space. . . It seems to go on and on forever. But then you get to the end and a gorilla starts throwing barrels at you." Chat Quotes [4:44pm] * @taHkroW dubs SK the best king of the world. |
| if only i could find the header files i want to see from within it, easily, without all this searching :P
__________________ www.livingwithoutmicrosoft.org last 5 cd's Avril Lavigne - Whatever the new one is called Lucky Boys Confusion - Throwing the Game lostprophets - Start Something Story of the Year - Page Avenue Flaming Lips - Yoshimi Battles the Pink Robots Don't let schooling interfere with your education. -Mark Twain |
There's more to MyCE.com
Listen up, we've got more. Product information on 102,541 products. Our experts have written 521 articles. We've gathered 16,068 news items for you to always keep updated.
Posting Rules
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
People who found this also searched for
- error directive must use c for stdcomp.h
- bcc55 f1003
- compile c must use stdcomp.h
- error directive gives compilation error
- error must use c for stdcomp.h
- fatal f1003 stdcomp.h 5 error directive must use c
- fatal f1003 stdcomp.h error directive must use c for stdcomp.h