Search found 3 matches
- Fri Mar 17, 2023 9:45 am
- Forum: Linux
- Topic: libtelldus.so exports no symbols
- Replies: 4
- Views: 10782
libtelldus.so exports no symbols
I get the following errors when linking: >>> g++ -o priv/telldus -ltelldus-core src/telldus.o src/telldus.o: In function `main': telldus.cpp:(.text+0x5e): undefined reference to `tdTurnOff' telldus.cpp:(.text+0x70): undefined reference to `tdDim' collect2: ld returned 1 exit status Inspecting furthe...
- Fri Mar 17, 2023 9:45 am
- Forum: Linux
- Topic: libtelldus.so exports no symbols
- Replies: 4
- Views: 10782
Re: libtelldus.so exports no symbols
Ok, my Linux-fu failed me a bit. It seems symbols are indeed exported. However, I still get the linker error. Output from readelf -Ws /usr/lib/libtelldus-core.so : Symbol table '.dynsym' contains 158 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00...
- Fri Mar 17, 2023 9:45 am
- Forum: Linux
- Topic: libtelldus.so exports no symbols
- Replies: 4
- Views: 10782
Re: libtelldus.so exports no symbols
Whoa. Unexpected difference between GCC in Ubuntu 11.10 vs Ubuntu 11.04.
Formerly, this worked:
Now, I need to put -ltelldus-core at the end:
Formerly, this worked:
Code: Select all
g++ -o priv/telldus -ltelldus-core src/telldus.oCode: Select all
g++ -o priv/telldus src/telldus.o -ltelldus-core