Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

XCode and Dynamic Linking

 
   Mac (Home) -> General Discussion RSS
Next:  Safari extension question  
Author Message
rutski89

External


Since: Feb 23, 2006
Posts: 6



(Msg. 1) Posted: Thu Feb 23, 2006 4:31 pm
Post subject: XCode and Dynamic Linking
Archived from groups: comp>sys>mac>programmer>misc (more info?)

I'm totally new to XCode and I can't for the life of me figure out how
to get my binary to link against a dynamlic library. I have a very
simple ncurses program:

#include <ncurses.h>

int main() {
initscr();
addch('o');
refresh();
getch();
endwin();
return0;
}

I've trieded adding -lncurses or -ncures to OTHER_LDFAGS under the
options menu for building, but I still keep getting errors about
missing symbols at runtime (which is another odd thing, the app does
acutally compile, but it I get missing symbol errors at runtime).

What should I do?
Back to top
Login to vote
rutski89

External


Since: Feb 23, 2006
Posts: 6



(Msg. 2) Posted: Thu Feb 23, 2006 4:35 pm
Post subject: Re: XCode and Dynamic Linking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Wah!? Why in the world did it get posted 3 times? I totally didn't mean
for that to happen.
Back to top
Login to vote
rutski89

External


Since: Feb 23, 2006
Posts: 6



(Msg. 3) Posted: Thu Feb 23, 2006 5:45 pm
Post subject: Re: XCode and Dynamic Linking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Before I was adding -lncuses in the get info menu for the Porject
Structure tab. I had to instaed add --lncurses to the Targets -> (name
of my binary) tab, as well as disable ZeroLink. Shouldn't things still
work even with ZeroLink enabled?
Back to top
Login to vote
rutski89

External


Since: Feb 23, 2006
Posts: 6



(Msg. 4) Posted: Thu Feb 23, 2006 5:45 pm
Post subject: Re: XCode and Dynamic Linking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Before I was adding -lncuses in the get info menu for the Porject
Structure tab. I had to instaed add --lncurses to the Targets -> (name
of my binary) tab, as well as disable ZeroLink. Shouldn't things still
work even with ZeroLink enabled?
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Linking problems after updating fink - Hi, I have updated my fink installation and after this my code was no more linkable. My console applications are linkable, but my GUI appliactions aren't. They are wxWidgets based applications who were linkable before updating. Are there any..

Porting rfom CW8.3 to Xcode problem - Hi, There! I've ported some sources of project to XCode, but when I trying to launch in debbuger GetCursor returns NULL, I've learned that it deprecated now... I think this is a problem with resources - still using *.r files. Is that code have to be..

GetDiskFragment 2806 problem. XCode porting... - In old CW project I had shared library with resources, now I remade it and got dylib in XCode. In program I trying to load it with GetDiskFragment, to load one necessary function from dylib as from shared library: if ((err = FSMakeFSSpec(0, 0, (unsigne...

What happened to XCode "Find in API" for Java - I seem to remember being impressed with the ProjectBuilder's ability to find the latest Java documentation on Sun's web site. Maybe it was the first XCode. In any case, I haven't used XCode for a while, and after the Feb 6 RefLib update, the Java..

Per-target names for Xcode stlib project - How can I control the name of the output file of a static library project on a per-configuration basis? I'm using Xcode 2.4.1. I know the usual way is to use the same name in per-configuration folders, but I am supposed to put everything in a single..
       Mac (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact