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 use WIN32 static library!

How to use WIN32 static library!

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

    Hi I have successfully built a Win32 Static library. I test this by adding the *.lib name to my link option in the project setting but when i try to use the class in the library in the test program, it always give me errror say "Undeclare identifier" whether i know firmly that it is nothing wrong with the declaration. I know that the linking process is ok, but what else did i miss ?? Regard,

    T H 2 Replies Last reply
    0
    • T tongc

      Hi I have successfully built a Win32 Static library. I test this by adding the *.lib name to my link option in the project setting but when i try to use the class in the library in the test program, it always give me errror say "Undeclare identifier" whether i know firmly that it is nothing wrong with the declaration. I know that the linking process is ok, but what else did i miss ?? Regard,

      T Offline
      T Offline
      Taka Muraoka
      wrote on last edited by
      #2

      Post the exact error message you're getting and if it's referring to a line in your program, that bit of code as well.


      he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

      1 Reply Last reply
      0
      • T tongc

        Hi I have successfully built a Win32 Static library. I test this by adding the *.lib name to my link option in the project setting but when i try to use the class in the library in the test program, it always give me errror say "Undeclare identifier" whether i know firmly that it is nothing wrong with the declaration. I know that the linking process is ok, but what else did i miss ?? Regard,

        H Offline
        H Offline
        HENDRIK R
        wrote on last edited by
        #3

        Hello, you have to include the header file where you declared your class you want to use everywhere you plan to use that class. This is needed to make the class known to your application.

        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