Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to compile a native (ie. using NT API instead of Win32) x64 app ?

How to compile a native (ie. using NT API instead of Win32) x64 app ?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestioncsharpc++com
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Defenestration
    wrote on last edited by
    #1

    I'm trying to compile the SysInternals Native app[^] for XP x64 (and other Windows x64 ), so I can create an app which can run during boot-time (similar to chkdsk), but am not having much luck. As SysInternals have stopped supplying native.xip, you can get it from http://www.dowers.net:8080/ftp/Programs/InsideWin2000/Sysinternals-Website/NATIVE.ZIP[^] I've installed the Windows Server 2003 DDK, and have started a Windows Server 2003 Free x64 Build environment (using the shortcut). I've then copied all the Native sources and makefile to ddk\inc, as instructed to do so at the bottom of the linked article. However, when I run build.exe, I get two identical errors:

    C:\WINDDK\3790~1.183\inc>build
    BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
    BUILD: Using 4 child processes
    BUILD: Object root set to: ==> objfre_wnet_AMD64
    BUILD: Compile and Link for AMD64
    BUILD: Computing Include file dependencies:
    BUILD: Examining c:\winddk\3790~1.183\inc directory for files to compile.
    c:\winddk\3790~1.183\inc - 1 source files (82 lines)
    BUILD: Saving C:\WINDDK\3790~1.183\build.dat...
    BUILD: Compiling (NoSync) c:\winddk\3790~1.183\inc directory
    1>errors in directory c:\winddk\3790~1.183\inc
    1>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPATH=
    C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.
    BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 NOPASS0=1 PA
    SS1_NOLIB=1 AMD64=1 failed - rc = 2
    BUILD: Compiling c:\winddk\3790~1.183\inc directory
    100>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPAT
    H= C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.
    BUILD: nmake.exe failed - rc = 2
    BUILD: Compile errors: not linking c:\winddk\3790~1.183\inc directory
    BUILD: Done

    0 files compiled - 2 Errors
    

    What exactly does the error mean ?

    1>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPATH=
    C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.

    How can I fix it ? Is there any good informatio

    Richard Andrew x64R _ 2 Replies Last reply
    0
    • D Defenestration

      I'm trying to compile the SysInternals Native app[^] for XP x64 (and other Windows x64 ), so I can create an app which can run during boot-time (similar to chkdsk), but am not having much luck. As SysInternals have stopped supplying native.xip, you can get it from http://www.dowers.net:8080/ftp/Programs/InsideWin2000/Sysinternals-Website/NATIVE.ZIP[^] I've installed the Windows Server 2003 DDK, and have started a Windows Server 2003 Free x64 Build environment (using the shortcut). I've then copied all the Native sources and makefile to ddk\inc, as instructed to do so at the bottom of the linked article. However, when I run build.exe, I get two identical errors:

      C:\WINDDK\3790~1.183\inc>build
      BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
      BUILD: Using 4 child processes
      BUILD: Object root set to: ==> objfre_wnet_AMD64
      BUILD: Compile and Link for AMD64
      BUILD: Computing Include file dependencies:
      BUILD: Examining c:\winddk\3790~1.183\inc directory for files to compile.
      c:\winddk\3790~1.183\inc - 1 source files (82 lines)
      BUILD: Saving C:\WINDDK\3790~1.183\build.dat...
      BUILD: Compiling (NoSync) c:\winddk\3790~1.183\inc directory
      1>errors in directory c:\winddk\3790~1.183\inc
      1>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPATH=
      C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.
      BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 NOPASS0=1 PA
      SS1_NOLIB=1 AMD64=1 failed - rc = 2
      BUILD: Compiling c:\winddk\3790~1.183\inc directory
      100>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPAT
      H= C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.
      BUILD: nmake.exe failed - rc = 2
      BUILD: Compile errors: not linking c:\winddk\3790~1.183\inc directory
      BUILD: Done

      0 files compiled - 2 Errors
      

      What exactly does the error mean ?

      1>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPATH=
      C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.

      How can I fix it ? Is there any good informatio

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      You might have much better luck posting your question on a site that's devoted to driver development. They know all about this kind of stuff. Try this site: http://www.osronline.com/[^] Good luck! :-D

      1 Reply Last reply
      0
      • D Defenestration

        I'm trying to compile the SysInternals Native app[^] for XP x64 (and other Windows x64 ), so I can create an app which can run during boot-time (similar to chkdsk), but am not having much luck. As SysInternals have stopped supplying native.xip, you can get it from http://www.dowers.net:8080/ftp/Programs/InsideWin2000/Sysinternals-Website/NATIVE.ZIP[^] I've installed the Windows Server 2003 DDK, and have started a Windows Server 2003 Free x64 Build environment (using the shortcut). I've then copied all the Native sources and makefile to ddk\inc, as instructed to do so at the bottom of the linked article. However, when I run build.exe, I get two identical errors:

        C:\WINDDK\3790~1.183\inc>build
        BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
        BUILD: Using 4 child processes
        BUILD: Object root set to: ==> objfre_wnet_AMD64
        BUILD: Compile and Link for AMD64
        BUILD: Computing Include file dependencies:
        BUILD: Examining c:\winddk\3790~1.183\inc directory for files to compile.
        c:\winddk\3790~1.183\inc - 1 source files (82 lines)
        BUILD: Saving C:\WINDDK\3790~1.183\build.dat...
        BUILD: Compiling (NoSync) c:\winddk\3790~1.183\inc directory
        1>errors in directory c:\winddk\3790~1.183\inc
        1>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPATH=
        C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.
        BUILD: nmake.exe /nologo BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 NOPASS0=1 PA
        SS1_NOLIB=1 AMD64=1 failed - rc = 2
        BUILD: Compiling c:\winddk\3790~1.183\inc directory
        100>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPAT
        H= C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.
        BUILD: nmake.exe failed - rc = 2
        BUILD: Compile errors: not linking c:\winddk\3790~1.183\inc directory
        BUILD: Done

        0 files compiled - 2 Errors
        

        What exactly does the error mean ?

        1>c:\winddk\3790~1.183\bin\makefile.new(1106) : error U1050: Setting TARGETPATH=
        C:\WINDDK\3790~1.183\lib in .\sources is not valid - please use obj.

        How can I fix it ? Is there any good informatio

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        I think you should install the latest version of the DDK (WDK). The one you are using is very old and probably does not support x64. The new version, the last time I looked was something like 6001.18002.

        «_Superman_»

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups