#406 non-UNICODE build with MSVC10

open
nobody
None
5
2012-11-13
2012-07-30
Geoff
No

I am new to N++. After installing v5.9 I decided to try to
compile it from svn trunk source, v927, using MSVC10.

After studying the suggested MSVC build ideas, decided
to write my own single CMakeLists.txt, which builds
both the libraries (DLLS) and the EXE in one SLN file.

Would share this if anyone is interested.

Building the UNICODE version was fine, but needed to
apply some small 'fixes' for non-UNICODE.

In the attached patch needed to drop the 'W' from
the PathCompactPathEx() function in Common.cpp. Or perhaps
this could be done under an #ifdef UNICODE macro,
switching to the 'A' version for non-UNICODE.

The other two changes look like a typo, which
was consistently applied under UNICODE, but the
define is POS_RELOAD in non-UNICODE code, which
seems the better name ;=))

HTH.

Regards,
Geoff.

attached: npp-01.patch

Discussion

  • Geoff

    Geoff - 2012-07-30

    svn diff fixing the build

     
  • Geoff

    Geoff - 2012-07-30

    oops, sorry posted twice ;=((

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks