Due to a know problem with the developer tools on the lab G5s I'm working on (documented
here. Search for .o) I cannot use g++ to compile the program without resulting in linking errors. Also, I don't have admin access, so I can't move the needed files to the correct directories. Therefore, I need to manually link my program with it's needed files. So far, I've gotten this:
Code:
ld crt1.o dylib1.o gcrt1.o bundle1.o /usr/lib/libstdc++.a program.o
Which results in various errors referencing dyld and other things. So what do I need to link against for a C++ program? Here are the #includes for my program, just in case:
Code:
#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>