I am using Energia with cc3200 TI Evaluation Board and I have added a wavelet library from this link but after editing the library source file and compiling it gives this error:
/compressed/energia-0101e0017-windows/energia-0101e0017/hardware/tools/lm4f/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libc.a(lib_a-fini.o): In function `__libc_fini_array':fini.c:(.text.__libc_fini_array+0x22): undefined reference to '_fini' collect2.exe: error: ld returned 1 exit status
I did some google search and could not find any solution. Any help is appreciated.
Related
I installed boost using pacman -S boost boost-libs.
When I try to compile a program that uses boost::thread, and I got the following error:
/usr/bin/ld: /tmp/cc3AkelG.o: warning: relocation against `_ZTVN5boost6detail16thread_data_baseE' in read-only section `.text._ZN5boost6detail16thread_data_baseC2Ev[_ZN5boost6detail16thread_data_baseC5Ev]'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
Why does this happen and how can I fix it?
I find the answer in an other question.
I had to compile using -pthread -lboost_thread.
thanks for your answer.
I am trying to compile a .f77 file. Here is the command:
gfortran MIAH.f77 -o test
but I am getting the message below:
/usr/bin/ld:MIAH.f77: file format not recognized; treating as linker script
/usr/bin/ld:MIAH.f77:1: syntax error
collect2: error: ld returned 1 exit status**
What does this mean?
I'm writing a code in C++ with MySQL Cpp Conn 6.1 to connect to a database and write data for later use. When trying to initialize the driver with driver = get_driver_instance(); it returns an error message:
Creating executable: out/gcc-debug//DB8.exe
out/gcc-debug//defaultSensor.o: In function `Z10dbWriteWiniiiii':
C:\Users\LuisH.Forchesatto\Dropbox\ProjetosOmnet++\DB8/dbWriteWin.h:35: undefined reference to `_imp___ZN3sql5mysql19get_driver_instanceEv'
collect2.exe: error: ld returned 1 exit status
Makefile:85: recipe for target 'out/gcc-debug//DB8.exe' failed
make: *** [out/gcc-debug//DB8.exe] Error 1
I tried to add mysqlcppconn to the link option (-lmysqlcppconn) but it returns the following error message:
Creating executable: out/gcc-debug//DB8.exe
C:\Users\LuisH.Forchesatto\Downloads\omnetpp-4.6\tools\win32\mingw32\bin/ld.exe: cannot find -lmysqlcppconn
collect2.exe: error: ld returned 1 exit status
Makefile:85: recipe for target 'out/gcc-debug//DB8.exe' failed
make: *** [out/gcc-debug//DB8.exe] Error 1
this error applies if I include the full path to mysqlcppconn.dll or .lib as well as including their directories to paths and symbols.
The non initialized driver variable may be causing crashes when trying to connect to the database so it needs to work.
The paths and symbols contains the includes for mysqlcppconn headers and boost library headers. The full code to the application is in the link below.
https://dl.dropboxusercontent.com/u/85576999/dbWriteWin.h
2 possible error causes,
I - you are refering to undeclered function or variable
II - you arenĀ“t including the proper library in compilation time
when i update gcc 4.1 to gcc 5.1
i want to use occi11.2 connect to oracle11g
and have install
oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-odbc-11.2.0.4.0-1.x86_64.rpm
a link error is:
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.
output/MaintainEventList.o: In function _ZL20EventCommonStoreToDBP13st_SINGLELISTPN6oracle4occi10ConnectionE':
MaintainEventList.cpp:(.text+0x36a4): undefined reference to_ZNK6oracle4occi12SQLException10getMessageB5cxx11Ev'
MaintainEventList.cpp:(.text+0x3edb): undefined reference to `_ZNK6oracle4occi12SQLException10getMessageB5cxx11Ev'
collect2: error: ld returned 1 exit status
make: *** [bin/depositor] Error 1
how to deal with ?
I'm trying to compile ffmpeg from sources and can't resolve this issue
YASM libswresample/x86/resample.o
STRIP libswresample/x86/resample.o
CC libswresample/x86/resample_init.o
CC libswresample/x86/w64xmmtest.o
LD libswresample/libswresample.so.101
__wrap_swr_convert' referenced in section.text' of /tmp/cc6tTYGS.ltrans4.ltrans.o: defined in discarded section `.text' of libswresample/x86/w64xmmtest.o (symbol from plugin)
__wrap_swr_convert' referenced in section.text' of /tmp/cc6tTYGS.ltrans6.ltrans.o: defined in discarded section `.text' of libswresample/x86/w64xmmtest.o (symbol from plugin)
collect2: error: ld returned 1 exit status
library.mak:110: recipe for target 'libswresample/libswresample.so.101' failed
make: *** [libswresample/libswresample.so.101] Error 1
Linux Debian 8.1
please help me
w64xmmtest should only be used on Windows. I think you used configure --enable-xmm-clobber-test on Linux. Don't do that.