• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
XCode, libs and SNMP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode, libs and SNMP


  • Subject: XCode, libs and SNMP
  • From: Arnaud Schoofs <email@hidden>
  • Date: Tue, 16 Mar 2010 15:45:29 +0100

Hi,

I'm pretty new to XCode so excuse me if my question seems stupid.

I've downloaded a C++ file example of a program using NET-SNMP API. I've also downloaded the Makefile to compile this app.
When running the Makefile in a terminal : no problem, everything works fine.
Secondly i tried to make a "basic c++ xcode project", I added source files and tried to compile. Of course it didn't work due to library dependencies.
So i made my own target "using external build", and so using the makefile provided. It works.

Now i want to know how i can configure XCode to compile my files WITHOUT using the Makefile. Can you help me ? (You can find the Makefile at the end of this mail)

I've another question : is it possible to have "autocompletion" for the NET-SNMP API ?

Thanks for your help !

Best regards.

------------------------------------

CC=g++

OBJS1=snmpdemoapp.o
OBJS2=example-demon.o nstAgentSubagentObject.o
OBJS3=asyncapp.o
TARGETS=example-demon snmpdemoapp asyncapp

CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS=`net-snmp-config --libs`
BUILDAGENTLIBS=`net-snmp-config --agent-libs`

# shared library flags (assumes gcc)
DLFLAGS=-fPIC -shared

all: $(TARGETS)

snmpdemoapp: $(OBJS1)
	$(CC) -o snmpdemoapp $(OBJS1) $(BUILDLIBS)

asyncapp: $(OBJS3)
	$(CC) -o asyncapp $(OBJS3) $(BUILDLIBS)

example-demon: $(OBJS2)
	$(CC) -o example-demon $(OBJS2)  $(BUILDAGENTLIBS)

clean:
	rm $(OBJS2) $(OBJS2) $(TARGETS)

nstAgentPluginObject.so: nstAgentPluginObject.c Makefile
	$(CC) $(CFLAGS) $(DLFLAGS) -c -o nstAgentPluginObject.o nstAgentPluginObject.c
	$(CC) $(CFLAGS) $(DLFLAGS) -o nstAgentPluginObject.so nstAgentPluginObject.o

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Xcode performance issues over time
  • Next by Date: Re: Why can't I Run > Fix?
  • Previous by thread: Re: Why can't I Run > Fix?
  • Next by thread: XCode, libs and SNMP
  • Index(es):
    • Date
    • Thread