Click here to Skip to main content
15,886,078 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a folder includes many c++, c, h, object files as well as a MakeFile. So, I used Cygwin as well as MinGW to create an executable file namely calibrator.exe.

So, I address the target folder and type in "make all". On both MinGW and CygWin got the following errors.

CygWin:

VB
g++ -O3 -gstabs -Wall -DHAVE_CONFIG_H=1 -DMEASURES_BITS_16WIDE `fltk-config --cxxflags` -I/usr/include/libxml2 -I../emeter-toolkit -I../emeter-metrology/include -I../emeter-app -ocalibrator.exe cal-gui.o cal-control.o generator.o generator-by2463m.o generator-kaipu.o generator-ptc8320m.o generator-manual.o generator-pts3_3.o generator-pts3_3c.o generator-tf9100.o generator-star.o gui.o meter-control.o meter-access-dlt645.o meter-consumption-window.o meter-readings-window.o meter-support-windows.o ref-meter-by2463m.o ref-meter-control.o ref-meter-hsiang-cheng-hc3100.o ref-meter-kaipu-p3001c.o ref-meter-pts3_3.o ref-meter-pts3_3c.o ref-meter-star-s6502.o ref-meter-mixed.o pts3_3.o pts3_3c.o kaipu_p3001c.o serial.o meter-interact-dlt645.o -L/MinGW/bin -lxml2 -lpthreadGC2 `fltk-config --ldflags`
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lpthreadGC2
collect2: error: ld returned 1 exit status
Makefile:100: recipe for target 'calibrator.exe' failed
make: *** [calibrator.exe] Error 1




MinGW:

Click here!

So as you can see, seems in my cygwin and MinGW Bin's Folder there is something missing which is called "LpthreadGC2". I looked in this folder and found nothing under this name.

So, what do you think? How can I fix this problem and make .exe? what is the extension of this file? Is this a .dll file or so? Any idea please?

Thank you in advance!
Posted
Comments
Albert Holguin 27-Feb-15 16:38pm    
This is sort of an old post... but did you search for any libraries name pthreadGC2? The extension in regular Linux would be .o for the shared object. Cygwin does tend to butcher library names though, they do a .o.dll extension or something similar.
Henri Aghaei 20-Apr-15 15:15pm    
I got an answer in Cygwin and was able to compiled and make the .exe file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900