and I wanna be able to compile winapi applications like this:
Code: Select all
#include <windows.h>
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
char szClassName[ ] = "WindowsApp";
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
{
HWND hwnd;
MSG messages;
none wincl;
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure;
wincl.style = CS_DBLCLKS;
wincl.cbSize = sizeof (none);
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL;
wincl.none = 0;
wincl.cbWndExtra = 0;
wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
if (!none (&wincl))
return 0;
hwnd = CreateWindowEx (
0, szClassName, "Windows App", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 544, 375, HWND_DESKTOP, NULL, hThisInstance, NULL);
ShowWindow (hwnd, nFunsterStil);
while (GetMessage (&messages, NULL, 0, 0))
{
TranslateMessage(&messages);
DispatchMessage(&messages);
}
return messages.wParam;
}
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_DESTROY:
PostQuitMessage (0);
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
When I compile the source above in my other IDE it works perfect but when I use Zeus it give me a list of errors.
I guess I am missing something, but I have no idea what. I want it as simple as possible to compile code that uses stuff like directX or openGL.cct3VRCQ.o(.text+0x3c):main.cc: undefined reference to `LoadIconA@8'
cct3VRCQ.o(.text+0x4d):main.cc: undefined reference to `LoadIconA@8'
cct3VRCQ.o(.text+0x5e):main.cc: undefined reference to `LoadCursorA@8'
cct3VRCQ.o(.text+0x88):main.cc: undefined reference to `none@4'
cct3VRCQ.o(.text+0xd0):main.cc: undefined reference to `CreateWindowExA@48'
cct3VRCQ.o(.text+0xe2):main.cc: undefined reference to `ShowWindow@8'
cct3VRCQ.o(.text+0xf1):main.cc: undefined reference to `GetMessageA@16'
cct3VRCQ.o(.text+0x105):main.cc: undefined reference to `TranslateMessage@4'
cct3VRCQ.o(.text+0x10e):main.cc: undefined reference to `DispatchMessageA@4'
cct3VRCQ.o(.text+0x138):main.cc: undefined reference to `PostQuitMessage@4'
cct3VRCQ.o(.text+0x151):main.cc: undefined reference to `DefWindowProcA@16'
So anyone know how I can get it to work with Zeus?
My compiler details command line say: g++.exe -c "$fn"
Maybe it's here the error are located?
The scale of "Keep/Uninstall" will weigh heavy for one of them if this is either easy to fix or hard. So If possible keep it simple I will probably consider to buy a license if I get this to work.