POLINK: error: Unresolved external symbol '_WinMainCRTStartup'

Started by John Z, January 23, 2025, 09:30:35 PM

Previous topic - Next topic

John Z

Here is the batch build package - it has been tested on my largest program, the one mentioned previously.
It successfully builds from the IDE, or from a command window, the batch created final exe file
matched exactly the build by the IDE.

Change a few lines in make_all.bat, create baselink.lst (only 7 lines) and ready to build.

Limitations:  All source files must be in the same directory for make_objs.bat.  If multiple
              directories are used clone make_objs.bat to make_objs1.bat 2.bat etc., and change
              the source location in each.  Then call each from the make_all.bat
             
              Biggest thing is you must make the baselink.lst for the project manually

A general guide is in the 7z, and directions are also in each file as to what to change.

Hopefully useful, but if not its OK....

John Z


John Z

Quote from: John Z on January 24, 2025, 11:37:44 PM
              Biggest thing is you must make the baselink.lst for the project manually

Now you can make it easily with an Add-in.

Use Add-in BaseLink.dll
Purpose: Write a BaseLink.lst header file for the batch file Make_link.bat
Where: The BaseLink.lst file will be in the currently active project directory
What to do with it:  Copy it to wherever the make_link.bat is for the given project being batch made

How: Copy dll to AddIns, restart Pelles load your project then
Run: Under Menu Projects - click "Create BaseLink.lst from Mode Selected"

project files along with a pre-made dll are in the zip.

John Z

TimoVJL

 AddIn_EnumProjectFiles macro might be useful for creating cmd-files ?
May the source be with you

John Z

I was thinking along that line too.  An Add-In could create the entire make_all.bat file and the BaseLink.lst file then the three other files stay static if just called and fed from the master.  Basically an embedded a batch file template within the Add-in, or even read in and written out,  filling in the blanks along the way to make a working make_all.bat.

The poccx method is entirely smoother and transparent once implemented, but having another method in reserve doesn't hurt.  Maybe, maybe...but small audience I'm guessing.

John Z

TimoVJL

Quote from: John Z on January 26, 2025, 09:00:43 AM
The poccx method is entirely smoother and transparent once implemented, but having another method in reserve doesn't hurt.  Maybe, maybe...but small audience I'm guessing.
poccx is just a temporary solution for small group with 24H2.
generating batch files for other C compilers might be useful.
May the source be with you

HellOfMice

I don't understand why you spend your time like this. There aready have working solutions. Why continue like this? :-\

Vortex

Code it... That's all...