Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
sorry, but it looks insufficient. I do not know which code belongs to which file, and they are only part of the files. line numbers are also unavailable.
So you need to believe: sources cannot be resolved at chtMultiRegionFoam_Epta.C:106 because it is not defined in the current scope. You need to check the scope (together with the includes)...
This is the solver. If you provide an email address, I can send you 4 cases:
buoyantSimpleFoam, buoyantSimpleFoam_Epta, chtMultiRegionFoam and chtMultiRegionFoam_Epta.
The buoyantSimpleFoam and the chtMultiRegionFoam are the `original' solvers, as they are implemented in OpenFOAM, while buoyantSimpleFoam_Epta and chtMultiRegionFoam_Epta are the modified (by me) solvers.
The former works, while the latter doesn't.
in such cases I would try g++ -E <original options> and -o filename not needed.
this will run preprocessor, will resolve includes and evaluate macros. In the result we may check the scope. Maybe there is a type mismatch problem, or you tried to call a protected/private member. Unfortunately I cannot run g++ from here.
I do not think it is a compiler or makefile issue (maybe the compiler is too strict and maybe an older version would allow this construction, but I'm not sure about it).
You defined the class sources at the end of createFluidFields.H, maybe this is not the right place, you can try to move this line at the beginning of the file, or even in the main function.
Could you try that -E flag? I would like to see the output of the command
here is the command we need: remove -o Make/linux64GccDPOpt/chtMultiRegionFoam_Epta.o and add -E > somefilename (do not forget to set SOURCE)
it will create a preprocessed source file, you will see the result.