Bug: Static library project broken on Mac OS X
Posted: Sun May 26, 2013 9:28 am
I built a very simple static library and it fails to build. This works on windows. Recently I moved my development to Mac OS X and found this issue with the IDE.
temp.h
temp.cpp
Build the project
temp.h
Code: Select all
#ifndef _TEMP_H
#define _TEMP_H
int add2num(int x, int y);
#endif
Code: Select all
#include "temp.h"
int add2num(int x, int y)
{
return x + y;
}
Code: Select all
g++ -c temp.cpp -g -o ./Debug/temp.o -I. -I.
ar rcus ./Debug/libtemp.a @"temp.txt"
ar: @temp.txt: No such file or directory