PDA

View Full Version : anjuta pthread_create linker error



CTBuckweed
July 23rd, 2008, 08:37 PM
In the Anjuta IDE, I'm getting an error "undefined reference to pthread_create" when I attempt a build of my project. I'm new to Linux and am in the process of porting my tool kit (libraries) from Windows to Linux. I have used UNIX way back in the '90s then my career brought me to the Windows application development environment. Now I'm trying the Anjuta development environment in Ubuntu but I can't get past this hurdle.

I compile the file with g++ and it builds an executable when using the command line:
g++ -pthread main.cc

I have searched all around to figure out the Anjuta build options all to no avail.

Please help.