|
-
Oct 17th, 2002, 11:21 PM
#1
Thread Starter
Hyperactive Member
Problem including headers
Ok, I'm using mySQL++ ....
#include <mysql++>
.. Which works fine on its own, but when I try to #include <fstream.h> ... I get 100+ errors. The main errors are "ambiguous symbol" errors. I also get syntax error : identifier and some other qweer errors.
How can I use both these headers at the same time? I need them both
-
Oct 17th, 2002, 11:36 PM
#2
Thread Starter
Hyperactive Member
well, i had to do:
#include <fstream>
... but then fstream class constructors were different, and filebuf::sh_* 's werent available to me.
I dont like messing with stream headers, they always cause problems.
-
Oct 18th, 2002, 04:15 AM
#3
<fstream.h> are the old iostreams, <fstream> the new ones. They are slightly different, but better. Just look it up in a current reference.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 18th, 2002, 04:41 AM
#4
Monday Morning Lunatic
The constructors shouldn't be that much different. You're having trouble because you're mixing non-standard code (fstream.h) with standards-based code(mysql++ and fstream).
The new Standard C++ Library headers don't have the .h extension, things like <iostream>, <fstream>, <string>, <list>, etc.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 18th, 2002, 05:27 AM
#5
The new library no longer supports sharing definitions. I don't know why, but I won't miss them.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 18th, 2002, 05:36 AM
#6
Monday Morning Lunatic
I never even found out what they were. Suppose I never needed them.
Looks like it's time for me to do some research...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|