Sonya Blade <sonyablade2010 at hotmail.com> writes: > Thank you Jed, > ? > After running the code it retrieves, the given results > ? > $ make getlinklibs > 1> > -Wl,-rpath,/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib? > 2> -L/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib > -lpetsc -lX11 -lpthread -Wl, > 3>-rpath,/cygdrive/c/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib > -lflapack -lfblas? > 4>-L/usr/lib/gcc/i686-pc-cygwin/4.5.3 -lmpichf90 -lgfortran -lgcc_s -lgdi32 > -luser32 -ladvapi32 -lkernel32 -ldl -lpmpich? > 5>-lmpich -lopa -lmpl -lpthread -lgcc_eh -luser32 -ladvapi32 -lshell32 -ldl > ? > I've tried to parse out so it can be more readable, in the second line there > is -lX11 and -lpthread? > libraries which I don't have in the mentioned folder.
They are likely in "system paths", thus available using only -lX11. I don't know what format Code Blocks expects, but libX11 is the one accounting for most/all of your errors. > And should I add those libraries gdi32, advapi32, kernel32, shell32 depicted? > in the 4 and 5 line ? It seems they are intrinsic libraries that I'm not > supposed to? > dealt with. You can try without, and add them if you get weird link errors. It depends whether Code Blocks and/or your compiler add them automatically.
