ring2exe.exe TestRingToExecute.ring

50 views
Skip to first unread message

Bert Mariani

unread,
Apr 13, 2026, 3:09:29 PM (11 days ago) Apr 13
to The Ring Programming Language
Hello Mahmound

Came across this problem when I was updating one of my existing Ring to EXE programs

Attached:
     TestRingtoExecute.ring

The following command generates an EXE but the EXE does not work
      ring2exe.exe TestRingToExecute.ring

=======================
Code -Lines in  -- TestRingToExecute.ring

Test: Ring to EXE
C:\ring\bin\ring2exe.exe TestRingToExecute.ring
The rain in Spain
Lies mainly on the Plain
Sum = 5 + 7 ==> 12

=======================
Command
>C:\ring\bin\ring2exe.exe TestRingToExecute.ring

Ring2EXE: Process File : TestRingToExecute.ring
Ring2EXE: Start building the application...
Ring2EXE: Generate C source code file...
Ring2EXE: Generation Time : 0.01 seconds...
Ring2EXE: Generate batch|script file...
Ring2EXE: Generate batch|script file for dynamic building...
Ring2EXE: Build the Executable File...
Ring2EXE: End of building script...
Ring2EXE: Executable file is ready!
Ring2EXE: End of building process...
Ring2EXE: Clear Temp. Files...

========================
Ring Output:  TestRingToExecute.ring

Test: Ring to EXE
C:\ring\bin\ring2exe.exe TestRingToExecute.ring
The rain in Spain
Lies mainly on the Plain
Sum = 5 + 7 ==> 12
========================
EXE Output: TestRingToExecute.exe  ---  No Output

C:\MyStuff\AA-CurlApp-DISTRIBUTE>TestRingToExecute.exe

C:\MyStuff\AA-CurlApp-DISTRIBUTE>

================

Regards
Bert Mariani

TestRingToExecute.ring

Mahmoud Fayed

unread,
Apr 13, 2026, 6:13:18 PM (11 days ago) Apr 13
to The Ring Programming Language
Hello Bert

Try ring2exe.exe TestRingToExecute.ring -static
This avoids the need to ring.dll

Or avoid (-static) and copy ring.dll to the app folder

Note: the (-static) option is related only to (ring.dll), i.e. if other extensions are used, the related DLLs are expected to be in the app folder

Greetings,
Mahmoud

Bert Mariani

unread,
Apr 13, 2026, 7:24:18 PM (11 days ago) Apr 13
to The Ring Programming Language
Thanks  Mahmoud !!

>>> Try  ring2exe.exe TestRingToExecute.ring -static
        This avoids the need to ring.dll

Using the  -static  worked.
The hint about  "ring.dll" triggered my memory.
On new versions of Ring 1.26  etc
I needed to copy the following into the directory of my application 

// NOTE:  Copy from c:/ring/bin to current directory
//       ring.dll
//       ring_cjson.dll
//       ring_libcurl.dll

Now everything works again as expected

Regards
Bert Mariani

Mahmoud Fayed

unread,
Apr 13, 2026, 7:55:13 PM (11 days ago) Apr 13
to The Ring Programming Language
Hello Bert

You are welcome :D

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages