I have a really quick question. But it does bother me a lot.
I am using Linux eclipse IDE. And my program was built without any problems when using debug method. However, when I changed it to release method, I got an error like:
make:***[my_program_name]error1
This is what I get by using make clean && make -n in debug and release file:
Debug:
rm -rf ./src/solution3.o ./src/tttgame.o ./src/solution3.d ./src/tttgame.d solution3
echo 'Building file: ../src/solution3.cpp'
echo 'Invoking: Cross G++ Compiler'
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/solution3.d" -MT"src/solution3.d" -o "src/solution3.o" "../src/solution3.cpp"
echo 'Finished building: ../src/solution3.cpp'
echo ' '
echo 'Building file: ../src/tttgame.cpp'
echo 'Invoking: Cross G++ Compiler'
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/tttgame.d" -MT"src/tttgame.d" -o "src/tttgame.o" "../src/tttgame.cpp"
echo 'Finished building: ../src/tttgame.cpp'
echo ' '
echo 'Building target: solution3'
echo 'Invoking: Cross G++ Linker'
g++ -L/usr/include -o "solution3" ./src/solution3.o ./src/tttgame.o -lboost_filesystem -lboost_system
echo 'Finished building target: solution3'
echo ' '
Release:
rm -rf ./src/solution3.o ./src/tttgame.o ./src/solution3.d ./src/tttgame.d solution3
echo 'Building file: ../src/solution3.cpp'
echo 'Invoking: Cross G++ Compiler'
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/solution3.d" -MT"src/solution3.d" -o "src/solution3.o" "../src/solution3.cpp"
echo 'Finished building: ../src/solution3.cpp'
echo ' '
echo 'Building file: ../src/tttgame.cpp'
echo 'Invoking: Cross G++ Compiler'
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/tttgame.d" -MT"src/tttgame.d" -o "src/tttgame.o" "../src/tttgame.cpp"
echo 'Finished building: ../src/tttgame.cpp'
echo ' '
echo 'Building target: solution3'
echo 'Invoking: Cross G++ Linker'
g++ -o "solution3" ./src/solution3.o ./src/tttgame.o
echo 'Finished building target: solution3'
echo ' '
Can anyone give a hint what I might do wrong here?
Thanks!