So the title basically says what's going on. At first, I thought it must have been the MPI libraries because I had not built them at the time. After tearing out my hair for a while, I managed to get that solved. Now, however, the same error I got before I managed to get the libraries is still persistent, and I really don't know why!
The error is
C:/Users/Krist/Desktop/files/mpistuffs/mpi q cir sim/mpiqcs/main.cpp:66: undefined reference to `boost::mpi::environment::environment(bool)'
C:/Users/Krist/Desktop/files/mpistuffs/mpi q cir sim/mpiqcs/main.cpp:66:(.text+0x5d3): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `boost::mpi::environment::environment(bool)'
I get this every I call
boost::mpi::environment
This applies to all members of boost::mpi as far as I can tell.
My build command is
g++.exe -L"C:/Program Files/boost/boost_1_58_0/stage/lib" -L"C:/Program Files/MPICH2/lib" -L"C:/Program Files/boost/boost_1_58_0/stage/lib" -L"C:/Program Files/MPICH2/lib" -o bin/Debug/mpiqcs.exe obj/Debug/main.o "C:/Program Files/MPICH2/lib/libmpi.a" "C:/Program Files/MPICH2/lib/libmpicxx.a" C:/Boost/boost_1_58_0/stage/lib/libboost_system-mgw48-mt-d-1_58.a C:/Boost/boost_1_58_0/stage/lib/libboost_mpi-mgw48-mt-d-1_58.a C:/Boost/boost_1_58_0/stage/lib/libboost_serialization-mgw48-mt-d-1_58.a
obj/Debug/main.o
I don't want to post my errors on here, but at this point I'm just stumped. I've been at this for a few days now.
My system is Windows 7 64bit, running boost 1.58.0, MPICH2, latest MinGW G++ compiler, and I'm using the Code::Blocks IDE if that makes any difference
EDIT: Oops, I'm actually using the cygwin g++ compiler.