Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
-none-

-none-

2007-09-21       - By Warren Young

 Back
David Sevier wrote:
>
> I built mysql++, did the install of the libraries, and tested the sample
> code. Worked fine.
>
> I'm now trying to work on my own project using mysql++ and I get these
> errors:
> 1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(183) : error
> C2146: syntax error : missing ';' before identifier 'fd'

Are you sure there aren't any errors above this?  Like, say, one
complaining about winsock.h?  That would explain this error and the
others.  If that's it, then you need to be sure your new projects are
pointed to the Windows Platform SDK headers.  Don't ask me where that
should be ... it depends on your local setup.

If you're using one of the paid versions of Visual Studio, this is
almost certainly not what's going on, as the paths should be set up
correctly by the installer.  I'm also concerned that the examples work
but your program doesn't; that would imply that the default paths are
correct.  But, perhaps you are using Visual Studio Express, and have
installed the separate Platform SDK in some way that, shall we say,
results in uneven success.

If that's not it, then I can only recommend you do what you already said
you did: follow the README.vc instructions to the letter, and do a deep
eyeball-diff of the examples project settings vs yours.

> From what I can tell, it's a linking error of some sort.

Ah, no.  All of the error numbers begin with 'C', which in the MS system
always means a 'C'ompiler error.  Linker errors begin with 'L'.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=mysql@(protected)