Re: [Mysql-cocoa-users] Header files...
Brought to you by:
sergecohen
|
From: Serge C. <ser...@us...> - 2003-09-24 15:40:43
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Just to clarify something first (My apologise if this paragraph comes=20 in because I wrongly understand your message): The error lines that you report are not contradictory with the content=20= of the SMySQL_bundled/SMySQL.h file... it is indeed the contrary: Through SMySQL.h you've asked to import other header files, and the=20 compilers (preprocessor indeed) get this info. Rather the problem is=20 that for some reason it is not able to find them (in other word: it's=20 not complaining that you have not tried to import them but indeed that=20= it does not manage to import them). So the problem is that the preprocessor is not able to find the headers=20= that are called by SMySQL_bundled/SMySQL.h This is because of MY error... you have to edit SMySQL_bundled/SMySQL.h=20= so that is reads something like (replacing SMySQL/... by=20 SMySQL_bundled/...): #import <Foundation/Foundation.h> #import <SMySQL_bundled/SMySQLConstants.h> #import <SMySQL_bundled/MCPNull.h> #import <SMySQL_bundled/MCPResult.h> #import <SMySQL_bundled/MCPConnection.h> #import <SMySQL_bundled/MCPResultPlus.h> #import <SMySQL_bundled/MCPFastQueries.h> #import "mysql.h" That should do the trick. Last thing, I find it bizarre that you placed the SMySQL_bundled=20 framework in /Library/Frameworks (if you intend to use the framework=20 this way, then you should better use the SMySQL_static flavour of the=20 framework). When I'm using the bundled version of the framework I=20 usually put it somewhere in the project folder. Hope that helps. Serge. Le mercredi, 24 sep 2003, =E0 05:09 Europe/Amsterdam, Ezat Hashim a = =E9crit=20 : > I am trying to use the 'bundled' flavour of SMySQL with some problems.=20= > In my main header file I have placed the following: > > #import <SMySQL_bundled/SMySQL.h> > > which seems ok to me. However, when I compile I get the following: > > /Library/Frameworks/SMySQL_bundled.framework/Headers/SMySQL.h:30:35:=20= > SMySQL/SMySQLConstants.h: No such file or directory > /Library/Frameworks/SMySQL_bundled.framework/Headers/SMySQL.h:31:27:=20= > SMySQL/MCPNull.h: No such file or directory > /Library/Frameworks/SMySQL_bundled.framework/Headers/SMySQL.h:32:29:=20= > SMySQL/MCPResult.h: No such file or directory > /Library/Frameworks/SMySQL_bundled.framework/Headers/SMySQL.h:33:33:=20= > SMySQL/MCPConnection.h: No such file or directory > /Library/Frameworks/SMySQL_bundled.framework/Headers/SMySQL.h:34:33:=20= > SMySQL/MCPResultPlus.h: No such file or directory > /Library/Frameworks/SMySQL_bundled.framework/Headers/SMySQL.h:35:34:=20= > SMySQL/MCPFastQueries.h: No such file or directory > > I don't get it. It should be included in the framework. If I look at=20= > SMySQL.h I see: > > #import <SMySQL/SMySQLConstants.h> > #import <SMySQL/MCPNull.h> > #import <SMySQL/MCPResult.h> > #import <SMySQL/MCPConnection.h> > #import <SMySQL/MCPResultPlus.h> > #import <SMySQL/MCPFastQueries.h> > #import "mysql.h" > //#import <SMySQL/mysql.h> > > Any ideas on what I am doing wrong. Is there a different search path=20= > that I should be using? > > Ezat > > - ---------------------------------------------------- Serge Cohen GPG Key ID: 9CBB58FB - ---------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Darwin) iD8DBQE/cbrN5EPeG5y7WPsRArSWAKDG0p14AB5c1xKeVV+RjXOJm+iZMACgiMQ4 vj7jqDZfu89DEL7tLZxucrQ=3D =3D4gpK -----END PGP SIGNATURE----- |