RE: Using static library in Cocoa app
RE: Using static library in Cocoa app
- Subject: RE: Using static library in Cocoa app
- From: "Josh Ferguson" <email@hidden>
- Date: Wed, 18 Jun 2003 09:41:33 -0500
- Thread-topic: Using static library in Cocoa app
Alun,
Make sure that your library search paths in your build target include the path to the library. If the correct path is not in there, it won't link against the library. Also, have you tried using .mm as a file extension? (This doesn't sound like a file extentsion problem, but I suppose it's worth a try)
Josh Ferguson
MindVision Software
http://filestorm.mindvision.com
-----Original Message-----
From: email@hidden
[
mailto:email@hidden]On Behalf Of email@hidden
Sent: Wednesday, June 18, 2003 9:11 AM
To: email@hidden
Cc: email@hidden
Subject: RE: Using static library in Cocoa app
Hi Finlay,
I have checked this a number of times, the library is in the 'Frameworks &
Libraries' section of the Target Settings. As far as I can tell I'm lniking
against my library, I cannot find anything in Project Builder which says
'this files is a static library, link it.' Would be good if it were that
obvious though.
There is only one target in my project.
The library file is checked in the Files tab.
BTW, I have tried the same lib with a non cocoa project to no avail, also
tried using .c, .cpp files in the cocoa project, these don't work either.
Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited
-----Original Message-----
From: Finlay Dobbie
To: email@hidden
Cc: email@hidden
Sent: 6/18/03 2:49 PM
Subject: Re: Using static library in Cocoa app
On Wednesday, June 18, 2003, at 12:17 pm, email@hidden wrote:
>
The functions _DLP_Cleanup and _DLP_Startup are in my library, has
>
anyone
>
come across this problem and can you help?
Are you sure you're linking aginst your library? Make sure the right
target is selected and check the box next to it in the files tab, and
check it's listed in the Frameworks & Libraries section of your Target
Settings.
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.