SAVE of COMMON variables



Hi

I compiled a fortran program into a dll with gcc.

In the program several variables are stored in COMMON's. I would like
to have these SAVE'd between calls to the dll, but gcc will not let me
compile something like:
program comsave
integer a
common /b/ a
save a
a = 10
end

Is it not allowed/possible?

tia,
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
.



Relevant Pages

  • Re: SAVE of COMMON variables
    ... I compiled a fortran program into a dll with gcc. ... compile something like: ...
    (comp.lang.fortran)
  • single threaded, multithreaded compilation
    ... In Microsofts compiler VC++ there are setting where you must choose if you ... want to compile your code as single threaded/multithreaded or MT dll. ... So far I know GCC doesn't work the that way. ...
    (comp.unix.programmer)
  • Re: How do I install this missing library?
    ... you really should be carefully following LSTC's installation ... libg2c is part of gcc. ... to tell a newcomer to compile. ... like the source code to GNU tar, and make sure you understand what's ...
    (comp.os.linux.misc)
  • Re: VBA and VSTO
    ... If you compile in VB6 with Global MultiUse than all you have to do is set a reference in Excel to your dll via Tools, References and you can access your functions in the dll directly. ... You will have to register the dll as well with Windows with Regsvr32, but that can be done quite simply in VBA. ...
    (microsoft.public.excel.programming)
  • Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
    ... I keep getting the .exe output when I compile in the VC7. ... the General Configuration Type to be .dll in the Project Property. ... Microsoft MVP, MCSD ... instead create my own folders for file grouping... ...
    (microsoft.public.win32.programmer.ole)