magiblot / tvision

A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
Other
1.99k stars 150 forks source link

MSVC - multi-threaded debug (/MTd) version of static lib #110

Closed hasaranga closed 11 months ago

hasaranga commented 11 months ago

Can you also provide multi-threaded debug (/MTd) version of static lib for MSVC? Artifacts section contains only the release version.

magiblot commented 11 months ago

Yes, of course. Besides the /MTd flag, do you also need the library to be built with debug info?

hasaranga commented 11 months ago

/MTd is debug version, right? What do you mean by debug info? pdb file?( I just want to link the lib with the debug version of my application)

magiblot commented 11 months ago

In the libraries artifact of the last workflow you will now find these new files:

RelWithDebInfo/tvision-relwithdebinfo.lib
RelWithDebInfo/tvision-relwithdebinfo.pdb

What you are looking for is tvision-relwithdebinfo.lib. This file is built with /MTd. You can ignore the pdb file.

Let me know if that worked.

hasaranga commented 11 months ago

I think I needed debug with debug info. Not release with debug info.

magiblot commented 11 months ago

Okay, I have added tvision-debug.lib. See now if it works.

Also, make sure you are using the last version of the header files. There may have been ABI-breaking changes since the last time you downloaded them.

hasaranga commented 11 months ago

That works great! So easy to work with Visual Studio. I just added include dir into the project includes. And linked with lib file. Then added /permissive- /Zc:__cplusplus compiler command line.

You should mention about visual studio lib files in the readme. :-)