I am new in code::blocks, and I am stuck with this problem.
I can compile and build my code with a command-line call to cygwin gcc-4, both from within cygwin and from Windows (7, professional, 64 bit) cmd. Code::blocks IDE can compile the code, but I have no luck with linking. I can link the object files and produce an executable with this command line:
c:\cygwin\bin\gcc-4 -Wall -Wwrite-strings -Wno-strict-aliasing -g3 -o ex1 ex1.o -Wl,-rpath,/home/PETScSource/petsc-3.1-p5/cygwin7/lib -L/home/PETScSource/petsc-3.1-p5/cygwin7/lib -lpetsc -lf2clapack -lf2cblas -lX11
but I cannot link from the IDE.
I specify the libraries explicitly in Project build options -> linker settings. No luck.
What do I do wrong?
Thanks.