No errors in wmake compilation
Hello,
I was wondering if you could give me a hand on the configuration of my compilation script. I am using OpenFOAM 1.7.1 and interFoam solver. More precisely I am trying to make some changes to interFoam. So I create a user projects directory as suggested in documentation, copy interFoam source files there and I use the supported Allwmake script to compile. Everything seems to work and I get my executable in $FOAM_USER_APPBIN. What I am worried is that errors are not displayed in a way to which I am accustomed. If I just type some meaningless line (random letters) and run wmake it will just state that there is an error but it will not give the precise information on file and line. Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/lnInclude -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/interfaceProperties/lnInclude -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/cyclicInterFoam.o -L/home/c111269/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \ Code:
$g++ --version |
Greetings Robert,
I was only able to reproduce the error you got by changing the name of the main function. Other than that, I still got proper error messages indicating the line where I did my evil deed :D So, try adding some crazy line before the main function line, or add inside the main function and you should get a proper error report! Best regards, Bruno |
You are absolutely right and my problem seems to have had a completely imaginary nature. Sorry for bothering you and many thanks for the reply. I guess I was trying to overcomplicate the simple. I adapted VIM to work as my IDE for OpenFOAM but I still haven't sorted out all the features of the set-up.
|
All times are GMT -4. The time now is 13:17. |