Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

G95 gives an assembler error

Status
Not open for further replies.

RMRubert

Technical User
Jan 10, 2011
1
ES
I'm in windows 7 pro x64.

I try g95-mingw.exe in another windows 7 pro x86 without problem. When I install an I compile a simple hello world program i get that.

C:\Users\RM\AppData\Local\Temp/ccSFtQ6q.s: Assembler messages:
C:\Users\RM\AppData\Local\Temp/ccSFtQ6q.s:11: Error: invalid instruction suffix for `push'
C:\Users\RM\AppData\Local\Temp/ccSFtQ6q.s:28: Error: invalid instruction suffix for `push'
C:\Users\RM\AppData\Local\Temp/ccSFtQ6q.s:29: Error: invalid instruction suffix for `push'

The "ccSFtQ6q.s" is variable and change every time I run.

If I copy the a.f90 file to the folder where g95 is installed, it compiles fine (why?). If I put in cmd.exe g95 without any f90 file I get "no such directory" (normal).

I've got no problem compiling another time in g95 in xp, or 7 32bits. I make everything fine but not works.

If I download and use: with g95, that program also compile fine, the same hello world, but if I call g95 in order to compile a file that is not in bin folder, it fails.

Thanks everybody.
 
Sounds like a path problem. Where does g95 appear in the path: is it at the beginning or the end of the path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top