Click here to Skip to main content
13,145,608 members (38,297 online)

C / C++ / MFC

 
PinnedHOW TO ANSWER A QUESTION Pin
Chris Maunder12-Jul-09 22:37
adminChris Maunder12-Jul-09 22:37 
PinnedHOW TO ASK A QUESTION Pin
Chris Maunder12-Feb-09 17:19
adminChris Maunder12-Feb-09 17:19 
QuestionProblem in loading c run time library in Visual C++ Pin
Member 119232449hrs 51mins ago
memberMember 119232449hrs 51mins ago 
AnswerRe: Problem in loading c run time library in Visual C++ Pin
Jochen Arndt9hrs 34mins ago
mvpJochen Arndt9hrs 34mins ago 
GeneralRe: Problem in loading c run time library in Visual C++ Pin
Member 119232449hrs 17mins ago
memberMember 119232449hrs 17mins ago 
GeneralRe: Problem in loading c run time library in Visual C++ Pin
enhzflep5hrs 37mins ago
memberenhzflep5hrs 37mins ago 
QuestionSyntax error Pin
Vaclav_Sal21hrs 51mins ago
memberVaclav_Sal21hrs 51mins ago 
AnswerRe: Syntax error Pin
leon de boer20hrs 51mins ago
memberleon de boer20hrs 51mins ago 
GeneralRe: Syntax error Pin
Vaclav_Sal20hrs 17mins ago
memberVaclav_Sal20hrs 17mins ago 
AnswerRe: Syntax error Pin
Richard MacCutchan16hrs 11mins ago
protectorRichard MacCutchan16hrs 11mins ago 
GeneralRe: Syntax error Pin
Vaclav_Sal6hrs 19mins ago
memberVaclav_Sal6hrs 19mins ago 
AnswerRe: Syntax error Pin
Richard MacCutchan6hrs 15mins ago
protectorRichard MacCutchan6hrs 15mins ago 
AnswerRe: Syntax error Pin
jschell4hrs 35mins ago
memberjschell4hrs 35mins ago 
Questionuser name in system service Pin
john563220-Sep-17 19:31
memberjohn563220-Sep-17 19:31 
AnswerRe: user name in system service Pin
Jochen Arndt20-Sep-17 21:25
mvpJochen Arndt20-Sep-17 21:25 
QuestionTCF Eclipse users please reply Pin
Vaclav_Sal20-Sep-17 13:39
memberVaclav_Sal20-Sep-17 13:39 
AnswerRe: TCF Eclipse users please reply Pin
Richard MacCutchan20-Sep-17 21:31
protectorRichard MacCutchan20-Sep-17 21:31 
GeneralRe: TCF Eclipse users please reply Pin
Vaclav_Sal21-Sep-17 13:06
memberVaclav_Sal21-Sep-17 13:06 
GeneralRe: TCF Eclipse users please reply Pin
Richard MacCutchan16hrs 19mins ago
protectorRichard MacCutchan16hrs 19mins ago 
QuestionDoubly Linked List Pin
kinderu16-Sep-17 23:17
memberkinderu16-Sep-17 23:17 
AnswerRe: Doubly Linked List Pin
Richard MacCutchan17-Sep-17 1:49
protectorRichard MacCutchan17-Sep-17 1:49 
AnswerRe: Doubly Linked List Pin
leon de boer17-Sep-17 4:42
memberleon de boer17-Sep-17 4:42 
AnswerRe: Doubly Linked List Pin
Jochen Arndt17-Sep-17 21:45
mvpJochen Arndt17-Sep-17 21:45 
QuestionMessage Closed Pin
16-Sep-17 0:55
memberlindanwhite16-Sep-17 0:55 
QuestionSolution access internet by proxy server c++ Pin
Member 1241714613-Sep-17 19:22
memberMember 1241714613-Sep-17 19:22 
AnswerRe: Solution access internet by proxy server c++ Pin
jschell18-Sep-17 12:32
memberjschell18-Sep-17 12:32 
QuestionLinker error Pin
Vaclav_Sal12-Sep-17 15:53
memberVaclav_Sal12-Sep-17 15:53 
AnswerRe: Linker error Pin
Richard MacCutchan12-Sep-17 19:12
protectorRichard MacCutchan12-Sep-17 19:12 
AnswerRe: Linker error Pin
CPallini13-Sep-17 1:25
mvpCPallini13-Sep-17 1:25 
GeneralRe: Linker error Pin
Vaclav_Sal13-Sep-17 3:14
memberVaclav_Sal13-Sep-17 3:14 
GeneralRe: Linker error Pin
leon de boer13-Sep-17 4:02
memberleon de boer13-Sep-17 4:02 
GeneralRe: Linker error Pin
jschell13-Sep-17 8:23
memberjschell13-Sep-17 8:23 
AnswerRe: Linker error Pin
Jochen Arndt13-Sep-17 4:14
mvpJochen Arndt13-Sep-17 4:14 
GeneralRe: Linker error Pin
Vaclav_Sal13-Sep-17 9:05
memberVaclav_Sal13-Sep-17 9:05 
Thanks for all the replies.
I did some research and I am convinced that the missing library is in different directory.
Makes no sense since the wiringPi was made for ARM / Raspberry PI and that is where the problem is.

I have added verbose option and this is what I get now



3:41:22 **** Build of configuration Release for project ESA_SPI ****
make all
Building file: ../src/ESA_SPI.c
Invoking: Cross GCC Compiler
arm-linux-gnueabihf-gcc -I"-I/usr/local/include -L/usr/local/lib -lwiringPi" -O3 -v -Wall -c -fmessage-length=0 -MMD -MP -MF"src/ESA_SPI.d" -MT"src/ESA_SPI.o" -o "src/ESA_SPI.o" "../src/ESA_SPI.c"
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/arm-linux-gnueabihf/include/c++/4.8.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf-cross/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf-cross --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-armhf-cross --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include
Thread model: posix
gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)
COLLECT_GCC_OPTIONS='-I' '-I/usr/local/include -L/usr/local/lib -lwiringPi' '-O3' '-v' '-Wall' '-c' '-fmessage-length=0' '-MMD' '-MP' '-MF' 'src/ESA_SPI.d' '-MT' 'src/ESA_SPI.o' '-o' 'src/ESA_SPI.o' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' '-mtls-dialect=gnu'
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/cc1 -quiet -v -I -I/usr/local/include -L/usr/local/lib -lwiringPi -imultiarch arm-linux-gnueabihf -MMD src/ESA_SPI.d -MF src/ESA_SPI.d -MP -MT src/ESA_SPI.o ../src/ESA_SPI.c -quiet -dumpbase ESA_SPI.c -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -mtls-dialect=gnu -auxbase-strip src/ESA_SPI.o -O3 -Wall -version -fmessage-length=0 -fstack-protector -Wformat-security -o /tmp/ccya3GZh.s
GNU C (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) version 4.8.4 (arm-linux-gnueabihf)
compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/arm-linux-gnueabihf"
ignoring nonexistent directory "/usr/include/arm-linux-gnueabihf"
ignoring nonexistent directory "-I/usr/local/include -L/usr/local/lib -lwiringPi"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/include
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/include-fixed
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/include
/usr/include
End of search list.
GNU C (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) version 4.8.4 (arm-linux-gnueabihf)
compiled by GNU C version 4.8.4, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: a580284b5d73d9bdb7f04a1c16c98639
COLLECT_GCC_OPTIONS='-I' '-I/usr/local/include -L/usr/local/lib -lwiringPi' '-O3' '-v' '-Wall' '-c' '-fmessage-length=0' '-MMD' '-MP' '-MF' 'src/ESA_SPI.d' '-MT' 'src/ESA_SPI.o' '-o' 'src/ESA_SPI.o' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' '-mtls-dialect=gnu'
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/as -v -I -I/usr/local/include -L/usr/local/lib -lwiringPi -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -meabi=5 -o src/ESA_SPI.o /tmp/ccya3GZh.s
GNU assembler version 2.24 (arm-linux-gnueabihf) using BFD version (GNU Binutils for Ubuntu) 2.24
COMPILER_PATH=/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/:/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/:/usr/lib/gcc-cross/arm-linux-gnueabihf/:/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/:/usr/lib/gcc-cross/arm-linux-gnueabihf/:/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/
LIBRARY_PATH=/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/:/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/lib/../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/lib/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-I' '-I/usr/local/include -L/usr/local/lib -lwiringPi' '-O3' '-v' '-Wall' '-c' '-fmessage-length=0' '-MMD' '-MP' '-MF' 'src/ESA_SPI.d' '-MT' 'src/ESA_SPI.o' '-o' 'src/ESA_SPI.o' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' '-mtls-dialect=gnu'
Finished building: ../src/ESA_SPI.c

Building target: ESA_SPI
Invoking: Cross GCC Linker
arm-linux-gnueabihf-gcc -o "ESA_SPI" ./src/ESA_SPI.o -libwiringPi.so.2.44
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -libwiringPi.so.2.44
collect2: error: ld returned 1 exit status
make: *** [ESA_SPI] Error 1

13:41:23 Build Finished (took 267ms)


So the "error is" that I am using crosscompiler and
the "make" is looking for plain gcc thus this

ignoring nonexistent directory "/usr/local/include/arm-linux-gnueabihf"

is telling the real story.

But the compiler is just ignoring non existed directory and linker is looking in wrong /non specified directory.

If you fellows just confirm my finding as OK I'll will muddle thru it and fix it.

Still confused why I have to enter "ibwiringPi2.44" to end up with "libwiringPi2.44"

I wonder if the "suffix / version " is also causing issue and plain "wiringPi" won't do.


Thanks for all the support.
Vaclav

PS I'll eventually fix all the weird stuff, after I get the linker libraries working on ARM.
GeneralRe: Linker error Pin
Jochen Arndt14-Sep-17 3:38
mvpJochen Arndt14-Sep-17 3:38 
GeneralRe: Linker error Pin
leon de boer15-Sep-17 22:21
memberleon de boer15-Sep-17 22:21 
GeneralRe: Linker error Pin
Vaclav_Sal16-Sep-17 3:02
memberVaclav_Sal16-Sep-17 3:02 
GeneralRe: Linker error Pin
leon de boer16-Sep-17 3:16
memberleon de boer16-Sep-17 3:16 
QuestionClarification of Debug/Release mode Pin
ForNow11-Sep-17 2:24
memberForNow11-Sep-17 2:24 
AnswerRe: Clarification of Debug/Release mode Pin
Jochen Arndt11-Sep-17 3:21
mvpJochen Arndt11-Sep-17 3:21 
AnswerRe: Clarification of Debug/Release mode Pin
leon de boer11-Sep-17 15:51
memberleon de boer11-Sep-17 15:51 
GeneralRe: Clarification of Debug/Release mode Pin
ForNow11-Sep-17 15:58
memberForNow11-Sep-17 15:58 
GeneralRe: Clarification of Debug/Release mode Pin
leon de boer12-Sep-17 8:33
memberleon de boer12-Sep-17 8:33 
GeneralRe: Clarification of Debug/Release mode Pin
ForNow12-Sep-17 8:46
memberForNow12-Sep-17 8:46 
GeneralRe: Clarification of Debug/Release mode Pin
leon de boer13-Sep-17 18:25
memberleon de boer13-Sep-17 18:25 
Questionbatch file quicksort algorithm Pin
wayne wu10-Sep-17 16:10
memberwayne wu10-Sep-17 16:10 
AnswerRe: batch file quicksort algorithm Pin
Richard MacCutchan10-Sep-17 19:24
protectorRichard MacCutchan10-Sep-17 19:24 
AnswerRe: batch file quicksort algorithm Pin
CPallini11-Sep-17 2:22
mvpCPallini11-Sep-17 2:22 
Questionelaborate the build instructions Pin
Member 125524089-Sep-17 13:05
memberMember 125524089-Sep-17 13:05 
AnswerRe: elaborate the build instructions Pin
Richard MacCutchan10-Sep-17 4:18
protectorRichard MacCutchan10-Sep-17 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 22 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid