Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Can't get a project to build in VC++

From: David Sevier <latentknowledge(at)gmail.com>
Date: Fri Sep 21 2007 - 14:21:51 EDT


Hi,

I've got one of those really frustrating issues.

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' 1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(183) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(183) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(358) : error C2065: 'SOCKET' : undeclared identifier
1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(358) : error C2146: syntax error : missing ')' before identifier 's' 1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(359) : error C2059: syntax error : ')'
1>c:\programming\mysql++-2.3.2\lib\null.h(61) : error C2143: syntax error : missing ';' before 'constant'
1>c:\programming\mysql++-2.3.2\lib\null.h(61) : error C2059: syntax error : 'constant'

>From what I can tell, it's a linking error of some sort. So I assume that
some setting or other in Visual Studios isn't right. But I can't for the life of me figure it out. I went through the README.vc and tried everything there. No luck. I made sure that I didn't have anything different from the example project. No luck.

Any ideas? I just can't think of what else to try!

Davd Received on Fri Sep 21 14:28:39 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:03:18 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library