#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include "LibSymbolInfo.h"
Go to the source code of this file.
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file genwindef.cpp.
{
string outfile("exports.def");
string library("UnknownLib");
string objfiles;
bool debug(false);
arg = 1;
while (
argv[arg][0] ==
'-') {
if (strcmp(
argv[arg],
"--") == 0) {
}
else if (strcmp(
argv[arg],
"-l") == 0) {
arg++;
}
else if (strcmp(
argv[arg],
"-o") == 0) {
arg++;
}
arg++;
}
for (arg; arg <
argc; arg++) {
if( arg+1 < argc) objfiles += " ";
}
if(out.fail()) {
cerr <<
"windef: Error opening file " << outfile <<
endl;
return 1;
}
out <<
"LIBRARY " << library <<
endl;
out << "EXPORTS" << endl;
libsymbols.
DumpSymbols(const_cast<char*>(objfiles.c_str()), out);
out.close();
return 0;
}