What a nightmare. All I want to do is create a reasonably simple MAPI program.
I like the dev-cpp GUI, but just about everything else about it has been a hair pulling, teeth gnashing experience costing me hundreds of hours in time. I don't know if I'm coming or going with this thing.
I downloaded dev-cpp 4.9.9.0, but it turned out not to be enough. Because it couldn't compile some projects I downloaded, I ended up downloading mingw, gtk, glib and a plethora of other libraries and utilities, all in the hopes of getting a relatively small project to compile (for the record, yes I was able to get "hello world" to compile and run). No luck despite spending a rediculous amount of time reading, researching and experimenting and failing to compile what are supposed to be fairly standard utilities. I kept going around and around in circles with ultimately no real progress.
I finally gave up and chose a different project. A MAPI project since it's similar to the project I actually want to create.
Since dev-cpp doesn't appear to include any MAPI headers, I poked around Microsloth's website and after more wall punching and multi-day downloads, I finally seem to have been able to install their "platform SDK" which apparently has the right header files.
So, I adjusted the include paths in the compiler options section of dev-cpp, eliminated all references to dev-cpp's include files (since there was a type conflict), turned off exception handling in both the compiler and project options windows since it was causing some kind of goofy error, but for reasons unknown, it still includes at least one of dev-cpps include files as you'll see below.
Considering that it doesn't seem to be having a major effect, I'm ignoring it for the moment (I still link with dev-cpp's libraries, but only because I'm too exhausted to take them out at the moment).
HOWEVER, I can't get past the following little obnoxious error, despite telling dev-cpp to generate code for a Pentium 3 (since that's what I'm running) in the code generation tab of both compiler and project options. I'm using Windows 2000. Here's the compiler log. Any solutions? Thanks in advance.
Compiler: Default compiler
Building Makefile: "I:\Dev-Cpp\Projects\MAPI\Makefile.win"
Executing make clean
rm -f main.o mapi_utils.o MAPI.exe
In file included from E:/Program Files/Microsoft SDK/include/windef.h:166,
from I:/Dev-Cpp/include/excpt.h:20,
from E:/Program Files/Microsoft SDK/include/windows.h:157,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/winnt.h:674:2: #error Must define a target architecture.
In file included from E:/Program Files/Microsoft SDK/include/msxml.h:274,
from E:/Program Files/Microsoft SDK/include/urlmon.h:254,
from E:/Program Files/Microsoft SDK/include/objbase.h:951,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
E:/Program Files/Microsoft SDK/include/oaidl.h:442:17: pasting "/" and "/" does not give a valid preprocessing token
In file included from E:/Program Files/Microsoft SDK/include/msxml.h:274,
from E:/Program Files/Microsoft SDK/include/urlmon.h:254,
from E:/Program Files/Microsoft SDK/include/objbase.h:951,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
from E:/Program Files/Microsoft SDK/include/windows.h:207,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/oaidl.h:442: error: syntax error before /' token
E:/Program Files/Microsoft SDK/include/oaidl.h:457:17: pasting "/" and "/" does not give a valid preprocessing token
E:/Program Files/Microsoft SDK/include/oaidl.h:457: error: syntax error before/' token
In file included from E:/Program Files/Microsoft SDK/include/objbase.h:952,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
from E:/Program Files/Microsoft SDK/include/windows.h:207,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/propidl.h:310:24: pasting "/" and "/" does not give a valid preprocessing token
In file included from E:/Program Files/Microsoft SDK/include/objbase.h:952,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
from E:/Program Files/Microsoft SDK/include/windows.h:207,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/propidl.h:310: error: syntax error
before `/' token
make.exe: *** [main.o] Error 1
Execution terminated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What a nightmare. All I want to do is create a reasonably simple MAPI program.
I like the dev-cpp GUI, but just about everything else about it has been a hair pulling, teeth gnashing experience costing me hundreds of hours in time. I don't know if I'm coming or going with this thing.
I downloaded dev-cpp 4.9.9.0, but it turned out not to be enough. Because it couldn't compile some projects I downloaded, I ended up downloading mingw, gtk, glib and a plethora of other libraries and utilities, all in the hopes of getting a relatively small project to compile (for the record, yes I was able to get "hello world" to compile and run). No luck despite spending a rediculous amount of time reading, researching and experimenting and failing to compile what are supposed to be fairly standard utilities. I kept going around and around in circles with ultimately no real progress.
I finally gave up and chose a different project. A MAPI project since it's similar to the project I actually want to create.
Since dev-cpp doesn't appear to include any MAPI headers, I poked around Microsloth's website and after more wall punching and multi-day downloads, I finally seem to have been able to install their "platform SDK" which apparently has the right header files.
So, I adjusted the include paths in the compiler options section of dev-cpp, eliminated all references to dev-cpp's include files (since there was a type conflict), turned off exception handling in both the compiler and project options windows since it was causing some kind of goofy error, but for reasons unknown, it still includes at least one of dev-cpps include files as you'll see below.
Considering that it doesn't seem to be having a major effect, I'm ignoring it for the moment (I still link with dev-cpp's libraries, but only because I'm too exhausted to take them out at the moment).
HOWEVER, I can't get past the following little obnoxious error, despite telling dev-cpp to generate code for a Pentium 3 (since that's what I'm running) in the code generation tab of both compiler and project options. I'm using Windows 2000. Here's the compiler log. Any solutions? Thanks in advance.
Compiler: Default compiler
Building Makefile: "I:\Dev-Cpp\Projects\MAPI\Makefile.win"
Executing make clean
rm -f main.o mapi_utils.o MAPI.exe
g++.exe -D__DEBUG__ -c main.cpp -o main.o -I"E:/Program Files/Microsoft SDK/include" -fverbose-asm -g3
In file included from E:/Program Files/Microsoft SDK/include/windef.h:166,
from I:/Dev-Cpp/include/excpt.h:20,
from E:/Program Files/Microsoft SDK/include/windows.h:157,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/winnt.h:674:2: #error Must define a target architecture.
In file included from E:/Program Files/Microsoft SDK/include/msxml.h:274,
from E:/Program Files/Microsoft SDK/include/urlmon.h:254,
from E:/Program Files/Microsoft SDK/include/objbase.h:951,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
E:/Program Files/Microsoft SDK/include/oaidl.h:442:17: pasting "/" and "/" does not give a valid preprocessing token
In file included from E:/Program Files/Microsoft SDK/include/msxml.h:274,
from E:/Program Files/Microsoft SDK/include/urlmon.h:254,
from E:/Program Files/Microsoft SDK/include/objbase.h:951,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
from E:/Program Files/Microsoft SDK/include/windows.h:207,
E:/Program Files/Microsoft SDK/include/oaidl.h:442: error: syntax error before
/' token E:/Program Files/Microsoft SDK/include/oaidl.h:457:17: pasting "/" and "/" does not give a valid preprocessing token E:/Program Files/Microsoft SDK/include/oaidl.h:457: error: syntax error before/' tokenIn file included from E:/Program Files/Microsoft SDK/include/objbase.h:952,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
from E:/Program Files/Microsoft SDK/include/windows.h:207,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/propidl.h:310:24: pasting "/" and "/" does not give a valid preprocessing token
In file included from E:/Program Files/Microsoft SDK/include/objbase.h:952,
from E:/Program Files/Microsoft SDK/include/ole2.h:69,
from E:/Program Files/Microsoft SDK/include/windows.h:207,
from main.cpp:1:
E:/Program Files/Microsoft SDK/include/propidl.h:310: error: syntax error
before `/' token
make.exe: *** [main.o] Error 1
Execution terminated