8 messages in com.mysql.lists.win32Re: Re: my_global.h mysql.h| From | Sent On | Attachments |
|---|---|---|
| Derick Smith | 17 Apr 2003 08:19 | |
| oceanare pte ltd | 17 Apr 2003 08:57 | |
| vze2...@verizon.net | 17 Apr 2003 09:35 | |
| vze2...@verizon.net | 17 Apr 2003 09:38 | |
| Martin | 17 Apr 2003 10:37 | |
| Stephen Fromm | 17 Apr 2003 11:03 | |
| Martin | 17 Apr 2003 11:17 | |
| Derick Smith | 22 Apr 2003 10:25 |
| Subject: | Re: Re: my_global.h mysql.h![]() |
|---|---|
| From: | Derick Smith (niag...@hotmail.com) |
| Date: | 04/22/2003 10:25:18 AM |
| List: | com.mysql.lists.win32 |
Hi! I fixed the problem, it was a compiler flag. I disabled the /Za option. I have come across one more issue:
Can you pass MYSQL_RES *result across different libraries. When I call the function: row = mysql_fetch_row(result)
Where the "result" is obtained from a function call from a different library, I get an application error. Is this just simple an invalid pointer reference or can you not pass the result between different libraries (.lib)? Thanks Eric
From: "Stephen Fromm" <step...@verizon.net>
To: "Martin" <mgai...@hotmail.com>, <vze2...@verizon.net>, "oceanare pte ltd" <ocea...@pacific.net.sg>, "Derick Smith" <niag...@hotmail.com> CC: <mys...@lists.mysql.com>, <win...@lists.mysql.com> Subject: Re: Re: my_global.h mysql.h Date: Thu, 17 Apr 2003 14:03:51 -0400
----- Original Message ----- From: "Martin" <mgai...@hotmail.com> To: <vze2...@verizon.net>; "oceanare pte ltd" <ocea...@pacific.net.sg>; "Derick Smith" <niag...@hotmail.com> Cc: <mys...@lists.mysql.com>; <win...@lists.mysql.com> Sent: Thursday, April 17, 2003 2:18 PM Subject: Re: Re: my_global.h mysql.h
Where is the source ? Martin
I only know about Linux, where it's on /usr/lib/include/mysql, or something like that. Are you using Linux or Win32...?
Cheers,
sjfromm
----- Original Message ----- From: <vze2...@verizon.net> To: "oceanare pte ltd" <ocea...@pacific.net.sg>; "Derick Smith" <niag...@hotmail.com> Cc: <mys...@lists.mysql.com>; <win...@lists.mysql.com> Sent: Thursday, April 17, 2003 9:39 AM Subject: Re: Re: my_global.h mysql.h
From: oceanare pte ltd <ocea...@pacific.net.sg> Date: 2003/04/17 Thu AM 10:58:21 CDT To: Derick Smith <niag...@hotmail.com> CC: mys...@lists.mysql.com, win...@lists.mysql.com Subject: Re: my_global.h mysql.h
Hi,
do not use precompiled header files and include first all other headers and then the MySQL headers.
Check the include path if this still does not work.
Yes, this will work also, as I found out. (The solution I eventually chose was to alter the MySQL header files, getting rid of the offending things I alluded to in my previous post.) But including the MySQL *.h files *after* the others should also work, since then the #define's and so forth that goof things up come *after*, and hence are rendered
harmless
(unless you use the same tokens in your own code, I guess).
Cheers,
S
Erich Derick Smith wrote:
Hi! Does anyone have any experience using mysql in different libraries then linking them into one executable?
I would like to use one persistent mysql connection for all the libraries and store the MYSQL* connection as a data structure in
one
of
the libraries.
I am using VC++6.0 and I am having problems linking libraries. The global header file does not recognize mysql data types: mysqldbi.h(130) : error C2081: 'MYSQL_ROW' : name in formal parameter list illegal
I can compile libraries separately with: #include <my_global.h> #include <mysql.h> but, when I include these in the global header files OR the c
program
of
the executable I get many of the following compile errors: C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(357) : error C2467: illegal declaration of anonymous 'struct' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(376) : error C2467: illegal declaration of anonymous 'struct' :\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(1519) : error C2054: expected '(' to follow '_inline'
Any suggestions?
Thanks Eric
_________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=step...@verizon.net
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=mgai...@hotmail.com
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=step...@verizon.net
-- MySQL Windows Mailing List For list archives: http://lists.mysql.com/win32 To unsubscribe: http://lists.mysql.com/win32?unsub=niag...@hotmail.com
_________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail




