#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.
33 string outfile(
"exports.def");
34 string library(
"UnknownLib");
41 while (
argv[arg][0] ==
'-') {
42 if (strcmp(
argv[arg],
"--") == 0) {
45 else if (strcmp(
argv[arg],
"-l") == 0) {
50 else if (strcmp(
argv[arg],
"-o") == 0) {
58 for (arg; arg <
argc; arg++) {
59 objfiles +=
argv[arg];
60 if( arg+1 < argc) objfiles +=
" ";
64 ofstream out(outfile.c_str());
66 cerr <<
"windef: Error opening file " << outfile << endl;
69 out <<
"LIBRARY " << library << endl;
70 out <<
"EXPORTS" << endl;
72 libsymbols.
DumpSymbols(const_cast<char*>(objfiles.c_str()), out);
GAUDI_API long argc()
Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call...
BOOL DumpSymbols(LPTSTR lpszLibPathName, std::ostream &pFile)