User forums > Using Code::Blocks

Building a Fortran project using .o module files

<< < (2/3) > >>

gd_on:
Without a full build log, it's difficult to help you. May be you set a wrong project : "Fortran library" instead of "Fortran application".
This could gives the message you have, because if finally you have built a library (*.a or *.dll file), it cannot be executed like that.
May be your fortran set configuration is wrong...
May be ... that's all we can say with so few informations.

COQ:
Dear,

You were right : I set a wrong Project type ("Fortran library" instead of "Fortran application") ..... ;D
It is OK now

Thank you very much

COQ

COQ:
Dear gd_on,

I have another problem ....  ;D
I want to use the debugger.
I have set the right debugging executable in "Setting-->Debugger-->Defaults" to gcc.exe (Debugger type GDB) as adviced
But when I try to start the debugger, i receive the attached Debug report, repeated below

What should I do ?

Thanks by advance

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


"Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Projets_EC2\GTT-2019\SUITE-ETUDE\CODE_COUPLE\code_couple_EC2\
Adding source dir: C:\Projets_EC2\GTT-2019\SUITE-ETUDE\CODE_COUPLE\code_couple_EC2\
Adding file: C:\Projets_EC2\GTT-2019\SUITE-ETUDE\CODE_COUPLE\code_couple_EC2\bin\Debug\CODE-COUPLE-EXE.exe
Changing directory to: C:/Projets_EC2/GTT-2019/SUITE-ETUDE/CODE_COUPLE/code_couple_EC2/.
Set variable: PATH=.;C:\Program Files\gcc\bin;C:\Program Files\gcc\bin\bin;C:\Users\Rémi COQUARD\gcc\bin;C:\Users\Rémi COQUARD\gcc\bin\bin;C:\Program Files\gcc\libexec\gcc\x86_64-w64-mingw32\9.2.0;C:\Users\Rémi COQUARD\gcc\libexec\gcc\x86_64-w64-mingw32\8.3.0;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\mkl;C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\mpirt;C:\Program Files (x86)\Intel\ComposerXE-2011\compiler\lib;C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Microsoft Visual Studio\Common\TOOLS;C:\Program Files\Microsoft Visual Studio\Common\MSDEV98\BIN;C:\Program Files\Microsoft Visual Studio\DF98\BIN;C:\Program Files\Microsoft Visual Studio\VC98\BIN;C:\Program Files (x86)\Intel\Compiler\11.1\065\lib\intel64;C:\Program Files (x86)\Intel\Compiler\11.1\065\mkl\em64t\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\SIMULIA\Commands;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Git\cmd;C:\SIMULIA\Abaqus\Commands;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\gnuplot;C:\Users\Rémi COQUARD\gcc;C:\Program Files\Docker Toolbox;C:\Users\Rémi COQUARD\AppData\Local\Microsoft\WindowsApps
Starting debugger: C:\Program Files\gcc\bin\gcc.exe -nx -fullname -quiet  -args C:/Projets_EC2/GTT-2019/SUITE-ETUDE/CODE_COUPLE/code_couple_EC2/bin/Debug/CODE-COUPLE-EXE.exe
done
Debugger finished with status 1
Selecting target:
Debug
Adding source dir: C:\Projets_EC2\GTT-2019\SUITE-ETUDE\CODE_COUPLE\code_couple_EC2\
Adding source dir: C:\Projets_EC2\GTT-2019\SUITE-ETUDE\CODE_COUPLE\code_couple_EC2\
Adding file: C:\Projets_EC2\GTT-2019\SUITE-ETUDE\CODE_COUPLE\code_couple_EC2\bin\Debug\CODE-COUPLE-EXE.exe
Changing directory to: C:/Projets_EC2/GTT-2019/SUITE-ETUDE/CODE_COUPLE/code_couple_EC2/.
Set variable: PATH=.;C:\Program Files\gcc\bin;C:\Program Files\gcc\bin\bin;C:\Users\Rémi COQUARD\gcc\bin;C:\Users\Rémi COQUARD\gcc\bin\bin;C:\Program Files\gcc\libexec\gcc\x86_64-w64-mingw32\9.2.0;C:\Users\Rémi COQUARD\gcc\libexec\gcc\x86_64-w64-mingw32\8.3.0;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\mkl;C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\mpirt;C:\Program Files (x86)\Intel\ComposerXE-2011\compiler\lib;C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Microsoft Visual Studio\Common\TOOLS;C:\Program Files\Microsoft Visual Studio\Common\MSDEV98\BIN;C:\Program Files\Microsoft Visual Studio\DF98\BIN;C:\Program Files\Microsoft Visual Studio\VC98\BIN;C:\Program Files (x86)\Intel\Compiler\11.1\065\lib\intel64;C:\Program Files (x86)\Intel\Compiler\11.1\065\mkl\em64t\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\SIMULIA\Commands;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Git\cmd;C:\SIMULIA\Abaqus\Commands;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\gnuplot;C:\Users\Rémi COQUARD\gcc;C:\Program Files\Docker Toolbox;C:\Users\Rémi COQUARD\AppData\Local\Microsoft\WindowsApps
Starting debugger: C:\Program Files\gcc\bin\gcc.exe -nx -fullname -quiet  -args C:/Projets_EC2/GTT-2019/SUITE-ETUDE/CODE_COUPLE/code_couple_EC2/bin/Debug/CODE-COUPLE-EXE.exe
done
Debugger finished with status 1




--- Quote from: gd_on on November 06, 2019, 07:21:22 pm ---Without a full build log, it's difficult to help you. May be you set a wrong project : "Fortran library" instead of "Fortran application".
This could gives the message you have, because if finally you have built a library (*.a or *.dll file), it cannot be executed like that.
May be your fortran set configuration is wrong...
May be ... that's all we can say with so few informations.

--- End quote ---

gd_on:
This is not a full build log but messages from the debugger.
Full build log is obtained in Log & other window, in Build log tags after activationg for your fortran compiler "Full commanf line" in Global compiler sttings / Compiler logging.
This is indicated tons of time in the forum, but you need to search even if you don't speak english fluently.
May be you forgot to specify the -g option at compile time. This is done automaticaaly when you build a debug project, but you can also add this option manually.

And read the wiki and the documentation (even if they are a little bit old).

gd_on

COQ:
Dear gd_on,

Sorry for the amateurism ....
I send you the debug report because I thought it was due to a debugger problem

Attached is the full build log file

Thank you for your patience

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version