![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 22
Rep Power: 0
![]() |
compileing problem[solved]
I am tring to compile a simple program that uses a md5 class that I found somewhere online. My problem is that it gets me the following error
Fatal F1003 c:\C comlpilers\Borland\Bcc55\include\stdcomp.h 5: Error directive: Must use C++ for STDCOMP.H I am using boreland compiler and the -p switch(which forces c++ compilling). all the files have .cc or .hh extention. what am I doing wrong? Last edited by Daniel_kd; Jun 24th, 2005 at 8:27 AM. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Use the upper case "p": -P. Lower case implies the Pascal calling convention, if I recall correctly. Why don't you use .cpp so you don't have to override extension types?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Posts: 22
Rep Power: 0
![]() |
well the libraries are written that way and I didn't want to change the extention so I didnt' have to chenge the '#includes' . I tried -P an dgot the same error + I tried the .cpp extention and I got the same problem again
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Well, if you read your posts, you see that there is nothing to work with other than the error message and your mention of the -p switch. That, being incorrect, was a likely candidate for the problem. Since that doesn't appear to the the answer, however, perhaps you'd care to attach some simplified code which reproduces the problem. I can only test it in Borland Builder 6, but that might be entirely adequate.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
"hobbyist programmer".. chuckle, snort, guffaw. Who are you kiddin'?
![]()
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Well, I am semi-retired
. I'd put "Hobbyist Troll" there, but I don't have control of it! :eek:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() ![]() |
<TANGENT>
I'd put "code monkey" in mine ![]() </TANGENT>
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
maybe I will put something in mine too... hmm.. is 'buffoon' a word?
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
#9 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
It is now.
Mine would probably be "Spam Whore", or something along those lines. |
|
|
|
|
|
#10 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 5
![]() |
OOBLE!
How did you get your avatar to work properly?
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|