CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   No errors in wmake compilation (http://www.cfd-online.com/Forums/openfoam/82680-no-errors-wmake-compilation.html)

AlmostSurelyRob December 2, 2010 07:43

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 \
            -linterfaceProperties    -lincompressibleTransportModels    -lincompressibleTurbulenceModel    -lincompressibleRASModels    -lincompressibleLESModels    -lfiniteVolume -lOpenFOAM -liberty -ldl  -lm -o /home/c111269/OpenFOAM/c111269-1.7.1/applications/bin/linux64GccDPOpt/cyclicInterFoam
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [/home/c111269/OpenFOAM/c111269-1.7.1/applications/bin/linux64GccDPOpt/cyclicInterFoam] Error 1

My g++ version is
Code:

$g++ --version
g++ (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Is there any way to tell wmake to report where the errors appear?

wyldckat December 4, 2010 10:29

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

AlmostSurelyRob December 7, 2010 04:36

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 21:00.