List:MySQL++« Previous MessageNext Message »
From:Jim Wallace Date:September 21 2007 8:34pm
Subject:RE: Can't get a project to build in VC++
View as plain text  
You need to include  C:\Program Files\MySQL\MySQL Server 5.0\include in
the include path and lib\opt in the lib path.

I do this via Tools | Options | Projects | VC++ Directorys then set the
folder appropriately paying attention to the "Show Directories for" drop
down.

Or you can include it project-by-project

-----Original Message-----
From: David Sevier [mailto:latentknowledge@stripped] 
Sent: Friday, September 21, 2007 4:31 PM
To: plusplus@stripped
Subject: Re: Can't get a project to build in VC++

Err. Sorry. No .cpp files in the include directory, just .h and one
.def. Sorry to cause confusion.

On 9/21/07, David Sevier <latentknowledge@stripped> wrote:
>
> Well, I do have the include directory, with loads of .h and .cpp
files.
> Would that be missing if
> I didn't do the Developer install? I'm pretty sure I did...
>
> On 9/21/07, Jim Wallace <jwallace@stripped> wrote:
> >
> > You must not have the MySQL Developer files installed, or not have 
> > them in your include path.  If installed they are in C:\Program 
> > Files\MySQL\MySQL Server 5.0\include
> >
> > If not installed you can re-run the MySQL install and pick the 
> > Developer
> >
> > option, which is *not* installed by default.
> >
> > -----Original Message-----
> > From: David Sevier [mailto:latentknowledge@stripped]
> > Sent: Friday, September 21, 2007 2:22 PM
> > To: plusplus@stripped
> > Subject: Can't get a project to build in VC++
> >
> > 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) :
> > 1>error
> > C2146: syntax error : missing ';' before identifier 'fd'
> > 1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(183) :
> > 1>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) :
> > 1>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) :
> > 1>error
> > C2065: 'SOCKET' : undeclared identifier
> > 1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(358) :
> > 1>error
> > C2146: syntax error : missing ')' before identifier 's'
> > 1>c:\program files\mysql\mysql server 5.0\include\mysql_com.h(359) :
> > 1>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
> >
>
>
>
> --
> David Sevier
> Owner
> Latent Knowledge
> (858) 337-5948




--
David Sevier
Owner
Latent Knowledge
(858) 337-5948
Thread
Can't get a project to build in VC++David Sevier21 Sep
  • RE: Can't get a project to build in VC++Jim Wallace21 Sep
    • Re: Can't get a project to build in VC++David Sevier21 Sep
      • Re: Can't get a project to build in VC++David Sevier21 Sep
        • RE: Can't get a project to build in VC++Jim Wallace21 Sep
          • Re: Can't get a project to build in VC++David Sevier21 Sep
  • Re: Can't get a project to build in VC++Warren Young22 Sep
    • Re: Can't get a project to build in VC++David Sevier22 Sep
      • Re: Can't get a project to build in VC++Warren Young22 Sep