No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Ok, this has got me banging my head against a wall. I have a structure defined in a header file. It get initialized in my "main.cpp" file, then later in a separate file "readconfig.cpp" it gets accessed to store information. I haven't been able to get it to compile except … |
|
Ok, I have a header file that each of my source files includes: #ifndef MAIN_H #define MAIN_H #include <string> #include <vector> #include <sys/socket.h> using namespace std; extern string CONFIG_FILE; struct _msg { string prefix; string command; vector<string> params; }; struct _channel { bool bLocalOnly; string name; vector<string> users; string mode; … |