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. Compilation with 2 byte chars in file path

Compilation with 2 byte chars in file path

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiocomdebugginghelp
5 Posts 4 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.
  • M Offline
    M Offline
    Manish K Agarwal
    wrote on last edited by
    #1

    I am trying to compile some cpp files which have 2 byte chars (something like C:\日本\myfile.cpp) in its path but I am unable to compile it with VS 2005. Is there any way to compile it ? You must be thinking why I need 2 byte chars in folder name ? Actually there is some crash in application at launch time if folder have 2 byte chars, I want to debug the same. Please help if some one know the way to debug it with VS 2005.

    Manish Agarwal manish.k.agarwal @ gmail DOT com

    W M 2 Replies Last reply
    0
    • M Manish K Agarwal

      I am trying to compile some cpp files which have 2 byte chars (something like C:\日本\myfile.cpp) in its path but I am unable to compile it with VS 2005. Is there any way to compile it ? You must be thinking why I need 2 byte chars in folder name ? Actually there is some crash in application at launch time if folder have 2 byte chars, I want to debug the same. Please help if some one know the way to debug it with VS 2005.

      Manish Agarwal manish.k.agarwal @ gmail DOT com

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      What is the exact error you are getting? I just tried the same and go the following BSCMAKE: error BK1506 : cannot open file '.\Debug\????.sbr': No such file or directory

      J 1 Reply Last reply
      0
      • M Manish K Agarwal

        I am trying to compile some cpp files which have 2 byte chars (something like C:\日本\myfile.cpp) in its path but I am unable to compile it with VS 2005. Is there any way to compile it ? You must be thinking why I need 2 byte chars in folder name ? Actually there is some crash in application at launch time if folder have 2 byte chars, I want to debug the same. Please help if some one know the way to debug it with VS 2005.

        Manish Agarwal manish.k.agarwal @ gmail DOT com

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        It sounds like the compiler is still using byte-oriented character sets in this area. It might work if you were trying to compile with a Japanese version of Windows. You could try compiling in the normal location, then adding a post-build step to copy the final executable (and its .pdb file) to the location that is causing the problem. Then, in Project Properties, Configuration Properties, Debugging, set the 'Command' to be the path you need the program to run from. Or, simply set the Output Directory (in Configuration Properties, General) to be the path that has the problem, although the linker might struggle with this.

        Stability. What an interesting concept. -- Chris Maunder

        W 1 Reply Last reply
        0
        • M Mike Dimmick

          It sounds like the compiler is still using byte-oriented character sets in this area. It might work if you were trying to compile with a Japanese version of Windows. You could try compiling in the normal location, then adding a post-build step to copy the final executable (and its .pdb file) to the location that is causing the problem. Then, in Project Properties, Configuration Properties, Debugging, set the 'Command' to be the path you need the program to run from. Or, simply set the Output Directory (in Configuration Properties, General) to be the path that has the problem, although the linker might struggle with this.

          Stability. What an interesting concept. -- Chris Maunder

          W Offline
          W Offline
          Waldermort
          wrote on last edited by
          #4

          I have found that exculding the creation of a sbr file for that single file works, but it hampers debugging. I also tried replacing the BSCMAKE.exe with that from VC6, but it complained too much. It looks like the filename is saved as a utf8 encoded string within the .sbr which is correct.

          1 Reply Last reply
          0
          • W Waldermort

            What is the exact error you are getting? I just tried the same and go the following BSCMAKE: error BK1506 : cannot open file '.\Debug\????.sbr': No such file or directory

            J Offline
            J Offline
            Jorgen Sigvardsson
            wrote on last edited by
            #5

            That's VC6 output, isn't it?

            -- This episode performed entirely by sock puppets

            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