[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Microblaze C++ pthreads linking problems
Hello Mr Falk,
I tried adding an extra -lpthreads at the end of the command and that Does make a difference. It produces the same result as I got using the LIBS=libpthreads.a in the Makefile. An executable file is created and it appears to run, but the print-out generated from g++ is alarming -
[ottob@localhost topDkApp]$ microblaze-uclinux-g++ -g -O2 -o halDallas vx_init_fpga.o top8App.o -lpthread ../../src/packages/HW_drv/Asic/HAL/libAsicHal.a ../../src/packages/HW_drv/libHwcf.a ../../src/packages/Lib/libHalLib.a ../../src/packages/rm/libRm.a ../../src/packages/os/libOs.a ../../src/packages/hw/libHw.a ../../src/packages/plib/libPlib.a ../../src/packages/HW_drv/Asic/Drv/libAsicDrv.a ../../src/packages/dbg/libDbg.a ../../src/packages/HW_drv/Xilinx/libXilinx.a ../../src/packages/HW_drv/Xilinx_dat/libXilinxDat.a ../../src/topApi/libTopApi.a ../../src/interface/libInterface.a ../../src/apps/libApps.a ../../framer/libFramer.a -lpthread
../../src/interface/libInterface.a(CLI.o): In function `mem_Menu()':
/home/ottob/petalinux-v0.30-rc1/software/user-apps/ds1254/src/interface/CLI.cpp(.text+0x2334):
[ottob@localhost topDkApp]$
It is like the linker wants to say something something about the mem_Menu function, but .. somehow chokes ?
Anyone seem anything similar before ?
Thanks,
/Otto
On 4/27/08, Brettschneider Falk <fbrettschneider@xxxxxxxxxxxxxxx> wrote:
Hi,
maybe just try to put -lpthread more behind as last argument for gcc.
Otto Blomqvist wrote:
Hello All,
I am trying to build a mixed C / C++ application. Problem is that microblaze-uclinux-g++ does not seem to find the pthreads library even though I added -lpthreads to the LDFLAGS.
Before spending days trying to figure out what's going on I'd like to make sure that this is even supposed to work. If so, any ideas on what the problem could be ..?