Lib files

Discussion in 'C' started by Levi, Jan 4, 2005.

  1. Levi

    Levi New Member

    Joined:
    Aug 21, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    Does anyone know, in my other compiler(Turbo c++), to use functions like GetInteger(), and stuff like that, I had to attach a .lib file to the project. How do you do that in Visaul c++ 6.0? Do you need to. Also, there does'nt seem to be the same ones. In turbo, the one I attached for GetInteger() was cslib.lib, but there is not that library in Visual. Is there one that replaces it. Thanks
    Levi
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I guess GetInteger is not a function of C and some additional libraries have provided that and so I dont think it will be available in Visual Studio. There are other ways to do this in VC++ like atoi and itoa ...
     
  3. Levi

    Levi New Member

    Joined:
    Aug 21, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Ok, I'll have to work on that. But is there a way to connect .lib files to the project. Thanks
    Levi
     
  4. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    use PRAGMA

    The following pragma causes the linker to search for the your library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.

    #pragma comment( lib, "your library name" )
     
  5. Levi

    Levi New Member

    Joined:
    Aug 21, 2004
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Thank you everyone for their help.
     
  6. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    YOu are always welcome Buddy
     
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Our Pleasure
     
  8. rahul.mca2001

    rahul.mca2001 New Member

    Joined:
    Feb 13, 2008
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    i tried itoa but couldnt get its thie=rd field can you please help
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice