dbTalk Databases Forums  

New Problem with DLL/MinGW

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss New Problem with DLL/MinGW in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Death Gauge
 
Posts: n/a

Default New Problem with DLL/MinGW - 11-17-2005 , 11:06 PM






Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Patrick McMichael
 
Posts: n/a

Default RE: New Problem with DLL/MinGW - 11-19-2005 , 09:10 PM






Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=3Dmysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]=20
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end=
=20
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to=
=20
get there! http://lifeevents.msn.com/category.a...d=3DRetirement


--=20
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #3  
Old   
Death Gauge
 
Posts: n/a

Default RE: New Problem with DLL/MinGW - 11-20-2005 , 10:07 AM



I did as you told me and I seem to get the mysqlpp.dll to compile but I
can't seem to get mysqlpp.a to compile at all. I get the following error
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=mysqlpp.a debug/coldata.o
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com>
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com>
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=mysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #4  
Old   
Patrick McMichael
 
Posts: n/a

Default RE: New Problem with DLL/MinGW - 11-20-2005 , 12:46 PM



You could try using=20

--out-implib=3Dlibmysqlpp.a instead of=20
--out-implib=3Dmysqlpp.a

(I never know in a *nix type system whether or not to include the "lib" in
front or not)

Could you verify that a (any) "*.a" file is being generated?

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]=20
Sent: Sunday, November 20, 2005 11:07 AM
To: p.s.mcmichael (AT) gats-inc (DOT) com; plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW

I did as you told me and I seem to get the mysqlpp.dll to compile but I=20
can't seem to get mysqlpp.a to compile at all. I get the following error=20
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=3Dmysqlpp.a debug/coldata.o=20
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o=20
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o=20
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o=
=20=20
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com>
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com>
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=3Dmysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.a...d=3DRetirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...otmail (DOT) =
com

__________________________________________________ _______________
Don't just search. Find. Check out the new MSN Search!=20
http://search.msn.click-url.com/go/o...ave/direct/01/




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #5  
Old   
Ovidiu Bivolaru
 
Posts: n/a

Default Re: New Problem with DLL/MinGW - 11-20-2005 , 02:17 PM



Actually, it is simple to override this . In mysq++/lib/Makefile, at
line 139 there is a rule which is targeting "examples" directory:
$(RM) $(EX_BIN_DIR)*$(EXE). Is this correct ?
Comment out this line (put # at begging of this line).

Regards,
Ovidiu

Death Gauge wrote:

Quote:
I did as you told me and I seem to get the mysqlpp.dll to compile but
I can't seem to get mysqlpp.a to compile at all. I get the following
error after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=mysqlpp.a debug/coldata.o
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o
debug/vallist.o -Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let
them know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=mysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the
end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Death Gauge
 
Posts: n/a

Default Re: New Problem with DLL/MinGW - 11-20-2005 , 07:44 PM



Oddly none of those ideas seem to work.



--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Ovidiu Bivolaru <ovidiu (AT) targujiu (DOT) rdsnet.ro>
Reply-To: ovidiu (AT) targujiu (DOT) rdsnet.ro
CC: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 22:16:52 +0200

Actually, it is simple to override this . In mysq++/lib/Makefile, at line
139 there is a rule which is targeting "examples" directory:
$(RM) $(EX_BIN_DIR)*$(EXE). Is this correct ?
Comment out this line (put # at begging of this line).

Regards,
Ovidiu

Death Gauge wrote:

Quote:
I did as you told me and I seem to get the mysqlpp.dll to compile but I
can't seem to get mysqlpp.a to compile at all. I get the following error
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=mysqlpp.a debug/coldata.o
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them
know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=mysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #7  
Old   
Patrick McMichael
 
Posts: n/a

Default RE: New Problem with DLL/MinGW - 11-20-2005 , 11:17 PM



Is it building any .a?

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]=20
Sent: Sunday, November 20, 2005 8:44 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW

Oddly none of those ideas seem to work.



--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Ovidiu Bivolaru <ovidiu (AT) targujiu (DOT) rdsnet.ro>
Reply-To: ovidiu (AT) targujiu (DOT) rdsnet.ro
CC: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 22:16:52 +0200

Actually, it is simple to override this . In mysq++/lib/Makefile, at line=
=20
139 there is a rule which is targeting "examples" directory:
$(RM) $(EX_BIN_DIR)*$(EXE). Is this correct ?
Comment out this line (put # at begging of this line).

Regards,
Ovidiu

Death Gauge wrote:

Quote:
I did as you told me and I seem to get the mysqlpp.dll to compile but I=20
can't seem to get mysqlpp.a to compile at all. I get the following error=
=20
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=3Dmysqlpp.a debug/coldata.o=20
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o=20
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o=20
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o=
=20
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them=20
know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=3Dmysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.a...d=3DRetirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don't just search. Find. Check out the new MSN Search!=20
http://search.msn.click-url.com/go/o...ave/direct/01/



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...otmail (DOT) =
com

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to=
=20
get there! http://lifeevents.msn.com/category.a...d=3DRetirement


--=20
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #8  
Old   
Death Gauge
 
Posts: n/a

Default RE: New Problem with DLL/MinGW - 11-21-2005 , 07:30 AM



Nope it just makes the DLL but not the '*.a' file that it is supposed to be
making. I'm not giving up until I solve this problem and making MinGW
version work with DLL again.

--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com>
To: <plusplus (AT) lists (DOT) mysql.com>
Subject: RE: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 23:57:10 -0500

Is it building any .a?

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Sunday, November 20, 2005 8:44 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW

Oddly none of those ideas seem to work.



--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Ovidiu Bivolaru <ovidiu (AT) targujiu (DOT) rdsnet.ro>
Reply-To: ovidiu (AT) targujiu (DOT) rdsnet.ro
CC: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 22:16:52 +0200

Actually, it is simple to override this . In mysq++/lib/Makefile, at line
139 there is a rule which is targeting "examples" directory:
$(RM) $(EX_BIN_DIR)*$(EXE). Is this correct ?
Comment out this line (put # at begging of this line).

Regards,
Ovidiu

Death Gauge wrote:

Quote:
I did as you told me and I seem to get the mysqlpp.dll to compile but I
can't seem to get mysqlpp.a to compile at all. I get the following error
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=mysqlpp.a debug/coldata.o
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them
know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=mysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/g...ave/direct/01/


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #9  
Old   
Patrick McMichael
 
Posts: n/a

Default RE: New Problem with DLL/MinGW - 11-21-2005 , 10:00 AM



Well there might be some way to generate the .a from the DLL, but I don't
know it - you're already way beyond the farthest I ever got anyway.

Good luck, and make sure to let us know once you get it working.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]=20
Sent: Monday, November 21, 2005 8:31 AM
To: p.s.mcmichael (AT) gats-inc (DOT) com; plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW

Nope it just makes the DLL but not the '*.a' file that it is supposed to be=
=20
making. I'm not giving up until I solve this problem and making MinGW=20
version work with DLL again.

--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com>
To: <plusplus (AT) lists (DOT) mysql.com>
Subject: RE: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 23:57:10 -0500

Is it building any .a?

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Sunday, November 20, 2005 8:44 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW

Oddly none of those ideas seem to work.



--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Ovidiu Bivolaru <ovidiu (AT) targujiu (DOT) rdsnet.ro>
Reply-To: ovidiu (AT) targujiu (DOT) rdsnet.ro
CC: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 22:16:52 +0200

Actually, it is simple to override this . In mysq++/lib/Makefile, at line
139 there is a rule which is targeting "examples" directory:
$(RM) $(EX_BIN_DIR)*$(EXE). Is this correct ?
Comment out this line (put # at begging of this line).

Regards,
Ovidiu

Death Gauge wrote:

Quote:
I did as you told me and I seem to get the mysqlpp.dll to compile but I
can't seem to get mysqlpp.a to compile at all. I get the following error
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=3Dmysqlpp.a debug/coldata.o
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them
know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=3Dmysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.a...d=3DRetirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...tmail (DOT) c=
om

__________________________________________________ _______________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...otmail (DOT) =
com

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.a...d=3DRetirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...otmail (DOT) =
com

__________________________________________________ _______________
Express yourself instantly with MSN Messenger! Download today - it's FREE!=
=20
http://messenger.msn.click-url.com/g...ave/direct/01/




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #10  
Old   
Ovidiu Bivolaru
 
Posts: n/a

Default Re: New Problem with DLL/MinGW - 11-21-2005 , 10:48 AM



--------------030903020205030303060606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I can give you a Makefile which would build the DLL, but there are
certain problems with exported symbols when compiling examples:
- mysqlpp::Query - will ask for a destructor to be defined
- mysqlpp:ate - the same
- mysqlpp::Row - the same + constructor
I think for MINGW there should be added MYSQLPP_EXPORT in many places
(mysqlpp:ate(const_string&) is not exported anywhere but used in examples)
Please accept my apoligies for providing incomplete work, but I'm a
newbie to Windows stuff. I think the Makefile is usable (copy it in
mysql++/lib/Makefile). With ceratin work to sources now I think we could
get examples working too.
You need pexports.exe in PATH
(http://www.emmestech.com/software/cy..._pexports.html)

Regards,
Ovidiu

Patrick McMichael wrote:

Quote:
Well there might be some way to generate the .a from the DLL, but I don't
know it - you're already way beyond the farthest I ever got anyway.

Good luck, and make sure to let us know once you get it working.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Monday, November 21, 2005 8:31 AM
To: p.s.mcmichael (AT) gats-inc (DOT) com; plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW

Nope it just makes the DLL but not the '*.a' file that it is supposed to be
making. I'm not giving up until I solve this problem and making MinGW
version work with DLL again.

--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 23:57:10 -0500

Is it building any .a?

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Sunday, November 20, 2005 8:44 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW

Oddly none of those ideas seem to work.



--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Ovidiu Bivolaru <ovidiu (AT) targujiu (DOT) rdsnet.ro
Reply-To: ovidiu (AT) targujiu (DOT) rdsnet.ro
CC: plusplus (AT) lists (DOT) mysql.com
Subject: Re: New Problem with DLL/MinGW
Date: Sun, 20 Nov 2005 22:16:52 +0200

Actually, it is simple to override this . In mysq++/lib/Makefile, at line
139 there is a rule which is targeting "examples" directory:
$(RM) $(EX_BIN_DIR)*$(EXE). Is this correct ?
Comment out this line (put # at begging of this line).

Regards,
Ovidiu

Death Gauge wrote:

I did as you told me and I seem to get the mysqlpp.dll to compile but I
can't seem to get mysqlpp.a to compile at all. I get the following error
after adding the linker you recommend

g++ -shared -o mysqlpp.dll --out-implib=mysqlpp.a debug/coldata.o
debug/connect
ion.o debug/datetime.o debug/field_names.o debug/field_types.o
debug/fields.o de
bug/manip.o debug/myset.o debug/qparms.o debug/query.o debug/result.o
debug/row.
o debug/sql_string.o debug/string_util.o debug/type_info.o debug/vallist.o
-Lc:
\mysql\lib\gcc -lmysqlclient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

--Death Gauge
"How do you gauge your death?!"

----Original Message Follows----
From: "Patrick McMichael" <p.s.mcmichael (AT) gats-inc (DOT) com
To: "'MySQL++ Mailing List'" <plusplus (AT) lists (DOT) mysql.com
Subject: RE: New Problem with DLL/MinGW
Date: Sat, 19 Nov 2005 21:50:19 -0500

Death,
This error means it's not generating the import library for the
mysqlpp library (which is used in programs that use the DLL to let them
know
what's in the DLL, I think). You should be able to add the following flag
to your linker flags and it will build the import library for you as it
builds the dll.

--out-implib=mysqlpp.a

Please let us know if you get it working in MinGW with a DLL, we've all
tried and given up.

-Patrick

-----Original Message-----
From: Death Gauge [mailto:clay_hg (AT) hotmail (DOT) com]
Sent: Friday, November 18, 2005 12:06 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: New Problem with DLL/MinGW

Well I seem to have compiled the DLL fine but then this pops up at the end
of the compilation.

del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2

Any ideas of what this means or how to fix it?

--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...-inc (DOT) com




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/g...ave/direct/01/







--------------030903020205030303060606
Content-Type: text/plain;
name="Makefile.mingwdll"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Makefile.mingwdll"

## DO NOT EDIT. Created from Makefile.mingw and Makefile.base.
## Edit those files instead, then type 'makemake mingw' at the
## project root to rebuild this Makefile.


## This file contains the 'make' rules specific to MinGW GCC. The
## ../makemake.bat script prepends this to Makefile.base to create a
## complete Makefile.

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with MySQL++; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
# USA

MYSQL_DIR=c:\mysql

CXX=g++

LIB_BASE=mysqlpp
BIN_DIR=debug
EX_BIN_DIR="..\examples\$(BIN_DIR)\"

## Build DLL -- uncomment $(IMP_FILE) target below, and comment out
## static library stuff if you want to try this.
CXXFLAGS=-W -Wall -Ic:\mysql\include -I.. -DMYSQLPP_MAKING_DLL -fkeep-inline-functions -c
IMP_FILE=$(BIN_DIR)/lib$(LIB_BASE).a
LIB_FILE=$(BIN_DIR)/$(LIB_BASE).dll
DEF_FILE=$(BIN_DIR)/libmysqlpp.def
LD=$(CXX)
LDFLAGS=-shared -o $(LIB_FILE) -Wl,--out-implib,$(IMP_FILE) -Wl,--output-def,$(DEF_FILE) -Wl,--enable-runtime-pseudo-reloc
LIBS=-Lc:\mysql\lib\gcc -lmysqlclient

## Build static library
#CXXFLAGS=-Ic:\mysql\include -I.. -DMYSQLPP_NO_DLL -O2 -c
#LIB_FILE=lib$(LIB_BASE).a
#LD=ar
#LDFLAGS=cru $(BIN_DIR)\$(LIB_FILE)

LOCAL_CLEAN=debug release

ifeq "$(BIN_DIR)" "debug"
CXXFLAGS += -O0
else
CXXFLAGS += -O2
endif

vpath %.a $(BIN_DIR)
vpath %.o $(BIN_DIR)
vpath %.dll $(BIN_DIR)

OBJ=o
EXE=.exe
DEL=rm -f

#RM=del /q
RM=rm -rf
CP=copy


..SUFFIXES: .cpp .o
..cpp.o:
$(CXX) $(CXXFLAGS) -o$(BIN_DIR)\$@ $<


mingw: all

example_setup:

#$(IMP_FILE): $(LIB_FILE)
# pexports $(LIB_FILE) |sed 's/^_//' > $(BIN_DIR)/$(LIB_BASE).def
# dlltool -d $(BIN_DIR)/$(LIB_BASE).def --driver-name c++ -l $(IMP_FILE)



## This is the base Makefile for compiling the MySQL++ library on
## systems that do not use automake. The ../makemake.* script appends
## this to one of the other Makefile.* files in this directory to create
## a complete Makefile.


# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with MySQL++; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
# USA


# --- No user-serviceable parts below

OBJS= coldata.$(OBJ) \
connection.$(OBJ) \
datetime.$(OBJ) \
field_names.$(OBJ) \
field_types.$(OBJ) \
fields.$(OBJ) \
manip.$(OBJ) \
myset.$(OBJ) \
qparms.$(OBJ) \
query.$(OBJ) \
result.$(OBJ) \
row.$(OBJ) \
sql_string.$(OBJ) \
string_util.$(OBJ) \
type_info.$(OBJ) \
vallist.$(OBJ)

BIN_DIR_OBJS=$(addprefix $(BIN_DIR)/, $(OBJS))


all debug: $(OBJS) $(LIB_FILE) $(IMP_FILE)

..PHONY: release
release:
$(MAKE) BIN_DIR=release

clean:
$(RM) $(LOCAL_CLEAN)


$(LIB_FILE): $(OBJS)
$(LD) $(LDFLAGS) $(LDSTARTUP) $(BIN_DIR_OBJS) $(LDEXE) $(LIBS)
# $(RM) $(EX_BIN_DIR)*$(EXE)

coldata.$(OBJ): coldata.cpp coldata.h
connection.$(OBJ): connection.cpp connection.h
datetime.$(OBJ): datetime.cpp datetime.h
field_names.$(OBJ): field_names.cpp field_names.h
field_types.$(OBJ): field_types.cpp field_types.h
fields.$(OBJ): fields.cpp fields.h resiter.h
manip.$(OBJ): manip.cpp manip.h
myset.$(OBJ): myset.cpp myset.h
qparms.$(OBJ): qparms.cpp qparms.h
query.$(OBJ): query.cpp query.h resiter.h
result.$(OBJ): result.cpp result.h resiter.h
row.$(OBJ): row.cpp row.h resiter.h
sql_string.$(OBJ): sql_string.cpp sql_string.h
string_util.$(OBJ): string_util.cpp string_util.h
type_info.$(OBJ): type_info.cpp type_info.h
vallist.$(OBJ): vallist.cpp vallist.h


--------------030903020205030303060606
Content-Type: text/plain; charset=us-ascii


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--------------030903020205030303060606--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.