Author Topic: Using CB to compile/debug codes with various libraries/dependencies  (Read 206 times)

Offline soltanma

  • Single posting newcomer
  • *
  • Posts: 1
Hello, I am trying to figure out how to use Code::Block as an IDE for a open source code called PFLOTRAN (https://www.pflotran.org/documentation/user_guide/how_to/installation/installation.html). I looked at PFLOTRAN installation instructions below. They have for visual studio but not for Code::Blocks. There are multiple libraries/dependencies as well as PETSC solver need to be integrated within a project file so that PFLOTRAN is compiled, etc...

I was wondering I should go about this!!

https://www.pflotran.org/documentation/user_guide/how_to/installation/installation.html

Thank you in advance for your help.

Best regards

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1262
Re: Using CB to compile/debug codes with various libraries/dependencies
« Reply #1 on: January 19, 2023, 07:36:00 pm »
You did not specify your OS, I suppose it is Windows due to the reference to Visual Studio.

I would follow the steps for Visual Studio, adapting the changes to C::B (not a noob task). I do not know if this will work, though.
« Last Edit: January 19, 2023, 07:40:33 pm by Miguel Gimenez »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7338
    • My Best Post
Re: Using CB to compile/debug codes with various libraries/dependencies
« Reply #2 on: January 19, 2023, 11:05:36 pm »
To soltanma: If I created an MSys2 MinGW64 package for pflotran could you build and use it?
If yes, I might try to do that.
I would also write simple CB directions for Code::Blocks and MSys2 pflotran package setup.

https://www.msys2.org/

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org