What is needed to use MS compiler?

About Monkey 2 Forums Monkey 2 Programming Help What is needed to use MS compiler?

This topic contains 7 replies, has 3 voices, and was last updated by  Diffrenzy 1 year, 9 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9313

    Diffrenzy
    Keymaster

    I’m trying to use VS compiler, but get this error:

    I’ve set MX2_USE_MSVC=1 in env:windows.txt ans paths look ok, but I could be missing something.

    In the above error a slash seems to be missing at mojo_app_2window.h ?

    #9315

    Mark Sibly
    Keymaster

    Have you rebuilt all modules with MX2_USE_MSVC=1?

    #9339

    Diffrenzy
    Keymaster

    Rebuilding all halts at :

    I tried adding the Windows SDK as show in attached file with the VS 2017 community edition, but still no go.

    Attachments:
    #9356

    mat
    Participant

    I had various issues getting it to work (using the Visual Studio 2017 community version) but finally did with the following in env_windows.txt:

    I had to add advapi32.lib in the above as rebuilding modules failed without that (I think it was registry related functions, maybe in sdl2 (my memory is bad…) that were failing at the linking stage). I’m not sure how it is working for anyone else, or if the above helps at all, but there we go 🙂

    Also, I have the following components installed (probably not all needed):

    #9370

    Mark Sibly
    Keymaster

    I had to add advapi32.lib in the above as rebuilding modules failed without that

    Are you sure it was when rebuilding modules? Library files should only be required at link time.

    This is the second time advapi32.lib has come up though so there’s definitely something dodgy going on with it.

    #9379

    Diffrenzy
    Keymaster

    I tried adding the above VS components, and adding the advapi32.lib

    If I try rebuilding mojo from within Ted2Go, I get :

    I’f I run RebuildAll2Go I get these errors:

     

    Any suggestions?

    #9464

    mat
    Participant

    @mark: Sorry for the confusion, it was during link time as you stated. With the advapi line commented out, here is the output:

    And for comparison, with the advapi line present:

    @difference: Did you get it working? Hopefully someone will have a suggestion. The speed increase is awesome with the MS compiler so I hope you get it sorted!

    #9468

    Diffrenzy
    Keymaster

    @mat : No luck yet 🙁

    As you say, the speed increase (for the things that do compile) seems awsome, so I’d really like to get it sorted out, but I’m unsure of what to try next.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.