Error with undefined reference Sysprogs forums › Forums › VisualGDB › Error with undefined reference This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by ket. Log In Register Lost Password Viewing 2 posts - 1 through 2 (of 2 total) Author Posts April 19, 2014 at 14:50 #784 mru22Participant I am receiving the following message when I attempt to compile my project. error 106 error VGDB1000: undefined reference to `_imp__pthread_create’ I have the following in my Makefile settings: -Wall -ggdb -ffunction-sections -O0 -std=c99 -g -pthread And I have #include in the file that im trying to compile. Any suggestions as to how I can fix this error ? Thanks, April 20, 2014 at 18:55 #3056 ketParticipant Hi, Is your project code where you are trying to include pthread functions written in c++? If so, then you need extern “C” { } around your pthread include (and any other c library include) as follows: extern "C" { #include } Author Posts Log In Register Lost Password Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In