473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Dev-c++: Linking a library

Hi,

I've got the library libmysqld.lib which links under MS VC++ without
problem.
But when I try to compile the same files + lib with Dev-C++ I get the Linker
Error
below... What am I doing wrong???

Thanks,
Josep

----------------------------------------------------

Compiler: Default compiler
Building Makefile: "E:\c++\mysql\devc++\Makefile.win"
Executing make...
make.exe -f "E:\c++\mysql\devc++\Makefile.win" all
g++.exe EXE/test_dll.o EXE/StdAfx.o -o
"EXE\test_dll.exe" -L"C:/Programme/Dev-Cpp/lib" -L"release/libmysqld.lib"

EXE/test_dll.o(.text+0x79):test_dll.cpp: undefined reference to
`mysql_server_init@12'
EXE/test_dll.o(.text+0xd0):test_dll.cpp: undefined reference to
`mysql_close@4'
EXE/test_dll.o(.text+0xde):test_dll.cpp: undefined reference to
`mysql_close@4'
EXE/test_dll.o(.text+0xe6):test_dll.cpp: undefined reference to
`mysql_server_end@0'

EXE/test_dll.o(.text+0x1aa):test_dll.cpp: undefined reference to
`mysql_init@4'
EXE/test_dll.o(.text+0x1db):test_dll.cpp: undefined reference to
`mysql_options@12'
EXE/test_dll.o(.text+0x1f5):test_dll.cpp: undefined reference to
`mysql_real_connect@32'

EXE/test_dll.o(.text+0x207):test_dll.cpp: undefined reference to
`mysql_error@4'
EXE/test_dll.o(.text+0x231):test_dll.cpp: undefined reference to
`mysql_close@4'
EXE/test_dll.o(.text+0x288):test_dll.cpp: undefined reference to
`mysql_query@8'
EXE/test_dll.o(.text+0x29f):test_dll.cpp: undefined reference to
`mysql_field_count@4'
EXE/test_dll.o(.text+0x2b5):test_dll.cpp: undefined reference to
`mysql_store_result@4'
EXE/test_dll.o(.text+0x2d1):test_dll.cpp: undefined reference to
`mysql_num_fields@4'
EXE/test_dll.o(.text+0x2e2):test_dll.cpp: undefined reference to
`mysql_fetch_row@4'
EXE/test_dll.o(.text+0x392):test_dll.cpp: undefined reference to
`mysql_affected_rows@4'
EXE/test_dll.o(.text+0x3b4):test_dll.cpp: undefined reference to
`mysql_error@4'

make.exe: *** [EXE/test_dll.exe] Error 1

Execution terminated
------------------------------------------------------------
Jul 22 '05 #1
1 7689

"Josep" <sl**************@arcor.de> wrote in message
news:40**********************@newsread4.arcor-online.net...
Hi,

I've got the library libmysqld.lib which links under MS VC++ without
problem.
But when I try to compile the same files + lib with Dev-C++ I get the Linker Error
below... What am I doing wrong???


This has nothing to do with the C++ language which is the topic of this
newsgroup. 'How do I operate my compiler?' questions are off topic here and
should be asked on a group dedicated to that compiler. Since Dev-C++ is just
an IDE for the MingW compiler, perhaps you could try here for some help.
http://www.mingw.org/

john
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: simduss | last post by:
Hi, First of all, I'm a beginner with Unix. I have a "make" (Unix command) problem with a Pro*C sub-program since I installed Oracle8i (before I was at 7.3.4). I have a script builder that...
2
by: renagade629 | last post by:
Can anybody help me understand what i'm doing wrong or what I'm missing? Is there anyother good and commendable C++ program I can use (free) from the internet like Dev C++? I'm having trouble doing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.