List:MySQL++« Previous MessageNext Message »
From:Kaplenko Vitaliy Date:May 30 2011 1:14pm
Subject:/usr/bin/ld: cannot find -lmysqlpp
View as plain text  
Dear MySQL++ Community,

I try to install mysql++-3.1.0 on Fedora15:

Linux 2.6.38.6-26.rc1.fc15.x86_64 #1 SMP Mon May 9 20:45:15 UTC 2011 x86_64 x86_64 x86_64
GNU/Linux

After run as root:
# ./configure --prefix=/usr
or
# rpmbuild --rebuild mysql++-3.1.0-1.src.rpm

After success compiling of my cpp-files, I got linking error:
/usr/bin/ld: cannot find -lmysqlpp

# find / -mount -name "libmysqlpp.so" -print
Find gives nothing output.

# ./configure --prefix=/usr
Gives output:
...
config.status: creating lib/mysql++.h
config.status: creating ssx/Doxyfile
config.status: creating mysql++.spec
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
And that's all.(That is don't run make)


# rpmbuild --rebuild mysql++-3.1.0-1.src.rpm
Gives output:
...
config.status: creating lib/mysql++.h
config.status: creating ssx/Doxyfile
config.status: creating mysql++.spec
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
+ /usr/bin/make
...
g++ -c -o mysqlpp_sql_buffer.o -I. -fPIC -DPIC  -I/usr/include/mysql -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic ./lib/sql_buffer.cpp
In file included from ./lib/sql_buffer.h:31:0,
                  from ./lib/sql_buffer.cpp:26:
./lib/refcounted.h:258:2: error: 'size_t' does not name a type
In file included from ./lib/sql_buffer.h:31:0,
                  from ./lib/sql_buffer.cpp:26:
./lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T,
Destroyer>::RefCountedPointer()':
./lib/refcounted.h:89:2: error: class 'mysqlpp::RefCountedPointer<T, Destroyer>'
does not have any field named 'refs_'
./lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T,
Destroyer>::RefCountedPointer(T*)':
./lib/refcounted.h:100:2: error: class 'mysqlpp::RefCountedPointer<T, Destroyer>'
does not have any field named 'refs_'
./lib/refcounted.h:104:4: error: 'refs_' was not declared in this scope
./lib/refcounted.h:104:16: error: expected type-specifier before 'size_t'
./lib/refcounted.h:104:16: error: expected ';' before 'size_t'
./lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T,
Destroyer>::RefCountedPointer(const ThisType&)':
./lib/refcounted.h:112:2: error: class 'mysqlpp::RefCountedPointer<T, Destroyer>'
does not have any field named 'refs_'
./lib/refcounted.h:115:8: error: 'refs_' was not declared in this scope
./lib/refcounted.h: In destructor 'mysqlpp::RefCountedPointer<T,
Destroyer>::~RefCountedPointer()':
./lib/refcounted.h:125:7: error: 'refs_' was not declared in this scope
In file included from ./lib/sql_buffer.h:31:0,
                  from ./lib/sql_buffer.cpp:26:
./lib/refcounted.h: In member function 'void mysqlpp::RefCountedPointer<T,
Destroyer>::swap(mysqlpp::RefCountedPointer<T, Destroyer>::ThisType&)':
./lib/refcounted.h:246:13: error: 'refs_' was not declared in this scope
make: *** [mysqlpp_sql_buffer.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.WIoL6t (%build)


RPM build errors:
     user tangent does not exist - using root
     group tangent does not exist - using root
     Bad exit status from /var/tmp/rpm-tmp.WIoL6t (%build)



Help me solve this problem, please.

Thanks in advance,
Vitaliy Kaplenko


Thread
/usr/bin/ld: cannot find -lmysqlppKaplenko Vitaliy31 May
  • Re: /usr/bin/ld: cannot find -lmysqlppWarren Young31 May