I've written some code that makes heavy use of Lapack++ to do computations. The code compiles and runs correctly on my linux machine using GCC 3.3.5. The code is probably not of interest to anyone for this post, but here is my makefile:
Now I must unfortunately move the code to Windows. It's just a command line program (no GUI); I just need it to correctly compile and link with Lapack++. We have access to MSVC and any free solutions. I tried (for varying amounts of time) MSVC, MinGW, and gcc through Cygwin (although I'd prefer a native solution, not an emulator). I wasn't able to link with the Lapack++ libraries using any of these methods, probably because I am unfamiliar with the compilers.Code:cc = g++ trg = yeh_bandgap src = yeh_bandgap.cpp utilities.cpp flags = -W -Wall -O3 -I/usr/local/include/lapackpp -L/usr/local/lib -llapackpp all: $(cc) $(flags) -o $(trg) $(src) clean: rm *.o $(trg)
Does anyone have suggestions on which compiler I should use, and how to correctly link to the Lapack++ libraries? I'd like to make as few changes to the code as possible (ideally, none).