Re: Linmking problem
From: Victor Bazarov (v.Abazarov_at_comAcast.net)
Date: 08/05/04
- Next message: Victor Bazarov: "Re: wrong struct definition"
- Previous message: rj: "Linmking problem"
- In reply to: rj: "Linmking problem"
- Next in thread: rj: "Re: Linmking problem"
- Reply: rj: "Re: Linmking problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 05 Aug 2004 15:05:37 -0400
rj wrote:
> I have a got a library (actually the whole dang project) that compiles fine
> with vc++6.0 (visual studio). It produced a lib file as it should. I took
> the lib and one of the header file that has all the functions defined with
> extern. i have added the header file in my new project and have added the
> lib in to the project ->settings->link area. But when i try to use one of
> the functions i get link errors saying
> "SoundIn.obj : error LNK2001: unresolved external symbol "struct gsm_state *
> __cdecl gsm_create(void)" (?gsm_create@@YAPAUgsm_state@@XZ)"
>
> what am i doing worng. i am attaching the header and lib
(a) The lib is not attached (but don't bother, I don't open attachments
anyway).
(b) If you don't post the code that _uses_ that library, what use to post
the library and the header?
Create another project where you'll use the code from your library, only
not as a library, but directly: add all the source files from your library
to the same project. Everything else should be the same. If it compiles
and links, then you got a problem setting the other project up. If it
does not compile and/or link, the problem is in the code, so make sure it
builds correctly before you attempt using your "whole dang project" as
a library again.
Victor
- Next message: Victor Bazarov: "Re: wrong struct definition"
- Previous message: rj: "Linmking problem"
- In reply to: rj: "Linmking problem"
- Next in thread: rj: "Re: Linmking problem"
- Reply: rj: "Re: Linmking problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|