Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 22nd, 2005, 5:38 PM   #1
Daniel_kd
Newbie
 
Daniel_kd's Avatar
 
Join Date: Apr 2005
Posts: 22
Rep Power: 0 Daniel_kd is on a distinguished road
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.
Daniel_kd is offline   Reply With Quote
Old Jun 22nd, 2005, 6:06 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 24th, 2005, 8:19 AM   #3
Daniel_kd
Newbie
 
Daniel_kd's Avatar
 
Join Date: Apr 2005
Posts: 22
Rep Power: 0 Daniel_kd is on a distinguished road
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
Daniel_kd is offline   Reply With Quote
Old Jun 24th, 2005, 9:23 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 24th, 2005, 1:09 PM   #5
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
"hobbyist programmer".. chuckle, snort, guffaw. Who are you kiddin'?
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old Jun 24th, 2005, 1:44 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 24th, 2005, 2:41 PM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,475
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
<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."
Infinite Recursion is offline   Reply With Quote
Old Jun 24th, 2005, 3:53 PM   #8
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
maybe I will put something in mine too... hmm.. is 'buffoon' a word?
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old Jun 24th, 2005, 5:14 PM   #9
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
It is now.

Mine would probably be "Spam Whore", or something along those lines.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 24th, 2005, 6:54 PM   #10
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 5 uman is on a distinguished road
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
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:04 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC