tags:

views:

109

answers:

1

Hello guys, I am trying to create a static library in Xcode using C++ ( All my files are .h or .cpp ).

I tried deleting main.cpp and then adding a target to my project to build a "Static" library. Since I'm not using Cocoa, I assumed that I needed to add a BSD Static Library, but I have tried other static library options with no apparent results. It doesn't build ( doesn't show any errors though, but it's like nothing happened).

In the following picture "Untitled" is my static library.

( as you can see libUntitled.a is red, even after I built the project. )

alt text

+2  A: 

Are your source files checked against the new target?

Otherwise, open the Build window, unfold the messages pane so you can see what the compiler is actually doing and where it places the .a file (if at all). That might help you to track down what's going on.

Frederik Slijkerman