Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: more mingw build problems: msg#00133

db.mysql.c++

Subject: RE: more mingw build problems

Based on your comments, I tried the following change to the lib/ and
examples/ Makefile.mingw file:

I changed:

CXXFLAGS=-Ic:\mysql\include -I.. -DMYSQLPP_NO_DLL -O2 -c

to:

CXXFLAGS=-I/c/mysql/include -I.. -DMYSQLPP_NO_DLL -O2 -c

And it "seems" to have compiled alright!

Examples and linker paths all had to be changed from c:\ to the /c/ type
format. Not sure if this will help anyone else, but it's what got it to
almost work for me. I say almost because now I'm getting the following
linker error when it tries to build the examples:

MySQL++ library built successfully.
The system cannot find the file specified.
g++ -L..\lib -L/c/mysql/lib/gcc -L../lib resetdb.o util.o -oresetdb.exe
-lmysqlpp -lmysqlclient
../lib/libmysqlpp.a(connection.o)(.text+0x395):connection.cpp: undefined
reference to `mysql_shutdown@4'
collect2: ld returned 1 exit status
make.exe: *** [resetdb.exe] Error 1

I am quite sure that the mysqlpp static library is named libmysqlpp.a and is
in the ../lib directory, the mysql client dll is named libmysqlclient.dll
and is located in the second path listed in the system PATH variable, the
libmysqlclient.a import library to the mysql client dll is named
libmysqlclient.a and is in the /c/mysql/lib/gcc directory. Am I missing
something? I have redeveloped the libmysqlclient.a file using dlltool off
of the libmysqlclient.dll, exactly as outlined in the README.mingw file.

Any more ideas?

Thanks,

-Patrick

-----Original Message-----
From: Warren Young [mailto:mysqlpp@xxxxxxxxxxx]
Sent: Monday, August 29, 2005 4:05 PM
To: MySQL++ Mailing List
Subject: Re: more mingw build problems

Patrick McMichael wrote:
> files to C:\mysql\include - which is the location of my mysql include
files
> (i.e. mysql.h is in that directory)?

You say the file is there, and g++ says otherwise. I've tried it again
with the most recent tarball, and it works fine here. The only
difference I can see between your system and mine, from what you've
posted, is that you installed MySQL++ somewhere other than c:\mysql++,
but I tested that, too. I don't know what else to tell you.

> Is the dlltool method somehow better?

I think you mean to ask whether the def file that is [supposed to be!]
distributed with MySQL++ is better than the one pexports generates. And
the answer to that question is, "yes". Unfortunately, it got left out
of the tarball. Expect 2.0.4 soon.

Not that this fixes your problem. You aren't even getting the object
files built, so worries about linking to the MySQL DLL are irrelevant at
this point.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=p.s.mcmichael@xxxxxxxxxxxx




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation