Hi,
So I'm fairly new to slickedit and mingw. I can successfully compile a single .cpp file in slickedit, but if I try breaking up functions into separate cpp and header files I get all sorts of errors. Either I don't have my environment set up correctly or I'm somehow missing something obvious in my code (I've tried a dozen variations)
GNU C options:
Compiler: C:\MinGW\bin\g++.exe
Linker: C:\MinGW\bin\g++.exe
And here are my includes for my code:
/*main.cpp*/
#include <iostream>
#include <cstdlib>
#include <string>
#include "codeStrip.h"
using namespace std;
void steveMacro(void);
int main(void){
/*codeStrip.cpp*/
#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include "codeStrip.h"
int codeStrip(void){
/*codeStrip.h*/
#define _codeStrip_h
#ifndef _codeStrip_h
int codeStrip(void);
#endif
I get a whole bunch of errors telling me that variables, function names were "not declared in this scope"
Any insight would be appreciated. Thanks.
Andrew