If you are happy to run a batch file along with a couple of tiny helper programs, a complete solution is posted by me here:
How can a batch file run a program and set the position and size of the window?
Contents as below . . . .
This demo batch file will run a command-line program and set the position and size of its Command Prompt console window. The general theme of this batch is the same as the previous two solutions (at the Stack Overflow page in the link above), but there were some unique problems and workarounds to make this work -- this is a Command Prompt window hosted by 'CMD.EXE' and not a GUI window like 'EXPLORER.EXE'.
Read all the comments and the description in the batch file for more info.
Tools used:
1. MonitorInfoView by Nir Sofer (41 KB)
2. NirCmd by Nir Sofer (43 KB)
3. GetPIDs by Daniel Scheibli (280 KB)
4. upx.exe --- is the command-line program we will use for this demo; place it in same directory as the batch file.
5. A batch file --- see below
Gather all five files into a directory. This is the batch file, ready to run on any Windows system.
What this demo batch is going to do, apart from presenting you with a custom console window, is it will run upx.exe with the command-line switches --best -v -o getpids-compressed.exe getpids.exe. We are going to compress our tool 'GetPIDs' down to 88 KB ........After launching, double-click on the title bar of this console window to see an interesting phenomenon; this console window behaves like a GUI !
This should be enough to compile the library fine. The tool to compress the .dll at the end will fail, but the libraries still work well for me.
EDIT: You can obtain here a more recent version of UPX that compresses 64bit files. Just download and move upx.exe to dependencies\upx\win\ in libtcod directory. The makefile will use it automatically, and you can also use it manually to compress SDL dll as well your own game exe, if you want.
Compress.bat And Upx.exe Download
Download
https://tiolib-stuphi.blogspot.com/?bwh=2wTscr
0aad45d008