David,
Many thanks. It's been a few years since I last used Visual Studio and I never
progressed beyond beginner status, so I think MSYS and MinGW will minimise the
culture shock for me for the time being!
On 17 Feb 2011, at 09:24, David Matthews wrote:
> I think I actually built that using Msys/Mingw. If you install them you can
> build from source exactly as you would on Unix or cygwin.
Done. But when I do PolyML.export("hw", main) and run the following in an
MSYS shell:
gcc -o hw hw.obj -L/usr/lib -lpolymain -lpolyml
then I get a complaint that there is an undefined reference to 'WinMain@16'. I
managed to devise a more complicated gcc command line that works by looking at
how the Poly/ML installation creates poly.exe, but the result is a Windows
application which just flashes up a window and executes immediately. Can I
create a console application? I.e., an application with a C/C++ main() and
C/C++ console I/O rather than a WinMain() and a GUI?
Aside: for the record, the more complicated command line that worked was:
gcc -o hw -mwindows -Wl,-u -Wl,_WinMain@16 hw.obj -L/usr/lib -lpolymain -lpolyml
> There are other possibilities. There are project files for Visual C++ 6
> which should work under newer versions of Visual C++. I think it's now
> possible to download Visual C++ Express free from Microsoft but you'll also
> need a version of MASM if you want to build Poly/ML from source.
>
Regards,
Rob.
> Regards,
> David
>
> On 16/02/2011 16:56, Rob Arthan wrote:
>> I have installed Poly/ML on MS Windows using the precompiled binary.
>> Now I want to start building my own applications. What do I need for
>> the equivalent in MS Windows of the following command line that I
>> would use on UNIX?
>>
>> cc -o hello hello.o -lpolymain -lpolyml
>>
>> I.e., where do I find the polymain and polyml DLLs and what developer
>> kits can I use? E.g., will MinGW work? And which developer kits are
>> recommended?
>>
>> Regards,
>>
>> Rob.
>>
>>
>>
>> _______________________________________________ polyml mailing list
>> [email protected]
>> http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
> _______________________________________________
> polyml mailing list
> [email protected]
> http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml