NO

Author Topic: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'  (Read 2466 times)

Offline John Z

  • Member
  • *
  • Posts: 973
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #15 on: January 24, 2025, 11:37:44 PM »
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

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #16 on: January 25, 2025, 06:26:38 AM »
Thank You John
--------------------------------
Kenavo

Offline John Z

  • Member
  • *
  • Posts: 973
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #17 on: January 26, 2025, 06:16:02 AM »
              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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #18 on: January 26, 2025, 08:39:23 AM »
 AddIn_EnumProjectFiles macro might be useful for creating cmd-files ?
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 973
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #19 on: January 26, 2025, 09:00:43 AM »
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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #20 on: January 26, 2025, 11:22:36 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.
« Last Edit: January 26, 2025, 02:23:42 PM by TimoVJL »
May the source be with you

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #21 on: January 26, 2025, 11:36:53 AM »
I don't understand why you spend your time like this. There aready have working solutions. Why continue like this? :-\
--------------------------------
Kenavo

Offline Vortex

  • Member
  • *
  • Posts: 975
    • http://www.vortex.masmcode.com
Re: POLINK: error: Unresolved external symbol '_WinMainCRTStartup'
« Reply #22 on: January 26, 2025, 07:45:43 PM »
Both of the solutions are nice. Thanks to Timo and John.
Code it... That's all...