Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 11:49 PM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default error in placing mysql.h

can anybody please tell me what i did wrong?

these are my errors:
c:\mysql\include\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd'
c:\mysql\include\mysql_com.h(115) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(115) : error C2501: 'fd' : missing storage-class or type specifiers

this is in the include file of mysql. does this mean that the problem is in mysql and not mine? actually, i have not done anything yet.. i have just placed the #include <mysql.h> on my View class and when i compiled it, the error was already there..

can anybody tell me what to do next?

 
Old November 22nd, 2004, 07:40 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by jl_joanne
 can anybody please tell me what i did wrong?

these are my errors:
c:\mysql\include\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd'
c:\mysql\include\mysql_com.h(115) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(115) : error C2501: 'fd' : missing storage-class or type specifiers

this is in the include file of mysql. does this mean that the problem is in mysql and not mine? actually, i have not done anything yet.. i have just placed the #include <mysql.h> on my View class and when i compiled it, the error was already there..

can anybody tell me what to do next?

 
Old January 30th, 2005, 09:07 PM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same error can anyone help please

 
Old February 18th, 2005, 07:09 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey guys, just include winsock.h before mysql.h =)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is IE placing the image up into the H1? mishagos BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 December 7th, 2006 10:32 AM
Placing Session variable KamalRaturi ASP.NET 2.0 Professional 3 September 13th, 2006 04:53 AM
Dynamic placing of a control Warbird General .NET 1 July 9th, 2004 02:19 PM
Placing quotes in attributes rooroo Classic ASP Basics 2 December 1st, 2003 01:00 PM
Placing processes in the background ohwail C++ Programming 2 September 10th, 2003 11:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.