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. Weird error when reference *.lib file

Weird error when reference *.lib file

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingtutorialquestion
2 Posts 2 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.
  • T Offline
    T Offline
    tongc
    wrote on last edited by
    #1

    Hi I have a library which consists of header and source file. I created the Win32 Static Lib project in visual C++6. It then compiles ok and leaves some objects and .lib file in the Debug folder. I then created another console project and attempt to reference the x.lib in the debug folder in the Win 32 Static Lib but it gives me 102 errors say "unknown character at 0x95" or something like that. And when i double clik on the error to see where the error is in the editor, the message box pop up and say that the file is binary and can not be read. Does any one know how to solve this problem?? Ah i also forgot to mention that i even have tried to add the x.lib into the link option in the project setting! This time it reduce to 3 error but alway say "undeclared identifer" which is quite weird to me since i know how i declare it is quite correct. Regard, Cuong Tong

    A 1 Reply Last reply
    0
    • T tongc

      Hi I have a library which consists of header and source file. I created the Win32 Static Lib project in visual C++6. It then compiles ok and leaves some objects and .lib file in the Debug folder. I then created another console project and attempt to reference the x.lib in the debug folder in the Win 32 Static Lib but it gives me 102 errors say "unknown character at 0x95" or something like that. And when i double clik on the error to see where the error is in the editor, the message box pop up and say that the file is binary and can not be read. Does any one know how to solve this problem?? Ah i also forgot to mention that i even have tried to add the x.lib into the link option in the project setting! This time it reduce to 3 error but alway say "undeclared identifer" which is quite weird to me since i know how i declare it is quite correct. Regard, Cuong Tong

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      It would be (more) productive if you provide the actual compiler /linker output. It is kind of difficult to guess from the information you supplied. P.S. Before linking go to ProgectSettings->Link->Customize and check "Print process messages" box

      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