I am trying to build a Windows x86 DLL using Eclipse(Mars) and GFortran.
However, I saw the following text in the console window after doing a “make all”, and am wondering why it says --build=x86_64-pc-linux-gnu since I am not using
Linux at all. I am building on a Windows 10 (64-bit) PC, targeting 32-bit Windows. Is the --build option correct for this scenario? If not, how do I change it in the Eclipse settings?
Target: mingw32
Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32
--with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
--enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada
--enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv
--enable-nls
Thread model: win32
From: photran-bounces@xxxxxxxxxxx [mailto:photran-bounces@xxxxxxxxxxx]
On Behalf Of Cervinka, Mitch
Sent: Tuesday, February 14, 2017 6:49 PM
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Eclipse debugger and stdout
Thanks, Greg.
Yes, MinGW provides the GDB debugger.
When you run the program from the command line, do you see any output? If you're not seeing any on the command line, then you won't see any output
in Eclipse since it's just displaying the same thing.
I'm not familiar with MinGW, but I assume it provides gdb as well as gcc. You could try debugging from the command line ("gdb executable") and see if you
get any output that way. Eclipse is just doing that behind the scenes.
The CDT forum might a better place to ask this question, since you're actually using the CDT debugger, and they are probably more familiar with MinGW (though not Fortran).
P.S. – I am not seeing anything in the console window that I am expecting from the WRITE(6,*) statements.
As far as I know it should be visible in the console view. Do you see the output when you run the program normally?
Is there a way to view what is written to UNIT=6 (aka stdout) in the Eclipse Debugger?
I am using MinGW and Gnu Fortran on Windows 10 with Mars version of Eclipse.
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran
|