Compile error

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

smason
orc pawn
orc pawn
Posts: 12
Joined: Fri Jul 07, 2006 7:25 am

Compile error

Post by smason » Fri Jul 07, 2006 1:35 pm

1>Compiling...
1>MQ2Windows.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Utilities.cpp

It says this on all of them.

Iam getting this error when I go to compile and its not createing dll's

I used the information in this thread
http://www.macroquest2.com/wiki/index.p ... _Compiling

Any help woudl be appercaited. Iam useing VS2005 Express and useing the VC.net compiling instructions.

I have also used the information in this thread
http://macroquest2.com/phpBB2/viewtopic ... ss+edition

I found this on search and i have done what was suggested in there about disableing the lines.

devNull
a ghoul
a ghoul
Posts: 121
Joined: Sat Mar 06, 2004 3:57 am

Post by devNull » Fri Jul 07, 2006 1:53 pm

The following is from your first link:
C:\MQ\MQ2Main\MQ2Main.h(31) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
You shouldn't be here -- you didn't follow directions.

windows.h is part of Microsoft's SDK. You don't have it. Go get it. Or, maybe you do have it but you didn't set the environment variables correctly. Either way: http://www.microsoft.com

If you actually did download the SDK, go back to the WIKI and find the MacroQuest2 Compiling link.

smason
orc pawn
orc pawn
Posts: 12
Joined: Fri Jul 07, 2006 7:25 am

Post by smason » Fri Jul 07, 2006 2:28 pm

This was the full error list.

1>------ Build started: Project: MQ2Main, Configuration: Release Win32 ------
1>Compiling...
1>MQ2Windows.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Utilities.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Spawns.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Pulse.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2PluginHandler.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2ParseAPI.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Mouse.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Main.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2MacroCommands.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2KeyBinds.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Globals.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2DInput.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2DetourAPI.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2DataVars.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2DataTypes.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2DataAPI.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Data.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Commands.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2CommandAPI.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2CleanUI.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Generating Code...
1>Compiling...
1>MQ2ChatHook.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Benchmarks.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>MQ2Auth.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>EQClasses.cpp
1>c:\mq2\mq2main\MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Generating Code...
1>Build log was saved at "file://c:\mq2\MQ2Main\Intermediate\BuildLog.htm"
1>MQ2Main - 24 error(s), 0 warning(s)
2>------ Build started: Project: MQ2Map, Configuration: Release Win32 ------
3>------ Build started: Project: MQ2Telnet, Configuration: Release Win32 ------
2>Compiling...
3>Compiling...
2>MQ2MapCommands.cpp
3>WinTelnet.cpp
2>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
2>MQ2MapAPI.cpp
3>.\WinTelnet.cpp(1) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
3>TelnetServer.cpp
2>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
3>.\TelnetServer.cpp(3) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>MQ2Map.cpp
3>mq2telnet.cpp
2>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
2>Generating Code...
3>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
3>Generating Code...
2>Build log was saved at "file://c:\mq2\MQ2Map\Intermediate\BuildLog.htm"
2>MQ2Map - 3 error(s), 0 warning(s)
3>Build log was saved at "file://c:\mq2\mq2telnet\Intermediate\BuildLog.htm"
3>MQ2Telnet - 3 error(s), 0 warning(s)
4>------ Build started: Project: MQ2Labels, Configuration: Release Win32 ------
4>Compiling...
4>MQ2Labels.cpp
4>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
4>Build log was saved at "file://c:\mq2\MQ2Labels\Intermediate\BuildLog.htm"
4>MQ2Labels - 1 error(s), 0 warning(s)
5>------ Build started: Project: MQ2ItemDisplay, Configuration: Release Win32 ------
5>Compiling...
5>MQ2ItemDisplay.cpp
5>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
5>Build log was saved at "file://c:\mq2\MQ2ItemDisplay\Intermediate\BuildLog.htm"
5>MQ2ItemDisplay - 1 error(s), 0 warning(s)
6>------ Build started: Project: MQ2Irc, Configuration: Release Win32 ------
7>------ Build started: Project: MQ2HUD, Configuration: Release Win32 ------
6>Compiling...
7>Compiling...
6>MQ2Irc.cpp
7>MQ2HUD.cpp
6>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
7>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
7>Build log was saved at "file://c:\mq2\MQ2HUD\Intermediate\BuildLog.htm"
7>MQ2HUD - 1 error(s), 0 warning(s)
6>Build log was saved at "file://c:\mq2\MQ2Irc\Intermediate\BuildLog.htm"
6>MQ2Irc - 1 error(s), 0 warning(s)
8>------ Build started: Project: MQ2EQIM, Configuration: Release Win32 ------
9>------ Build started: Project: MQ2EQBugFix, Configuration: Release Win32 ------
8>Compiling...
9>Compiling...
8>MQ2EQIM.cpp
9>MQ2EQBugFix.cpp
9>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
8>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
8>Build log was saved at "file://c:\mq2\MQ2EQIM\Intermediate\BuildLog.htm"
8>MQ2EQIM - 1 error(s), 0 warning(s)
9>Build log was saved at "file://c:\mq2\MQ2EQBugFix\Intermediate\BuildLog.htm"
9>MQ2EQBugFix - 1 error(s), 0 warning(s)
10>------ Build started: Project: MQ2CustomBinds, Configuration: Release Win32 ------
10>Compiling...
10>MQ2CustomBinds.cpp
10>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
10>Build log was saved at "file://c:\mq2\MQ2CustomBinds\Intermediate\BuildLog.htm"
10>MQ2CustomBinds - 1 error(s), 0 warning(s)
11>------ Build started: Project: MQ2ChatWnd, Configuration: Release Win32 ------
11>Compiling...
11>MQ2ChatWnd.cpp
11>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
11>Build log was saved at "file://c:\mq2\MQ2ChatWnd\Intermediate\BuildLog.htm"
11>MQ2ChatWnd - 1 error(s), 0 warning(s)
12>------ Build started: Project: MQ2Chat, Configuration: Release Win32 ------
12>Compiling...
12>MQ2Chat.cpp
12>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
12>Build log was saved at "file://c:\mq2\MQ2Chat\Intermediate\BuildLog.htm"
12>MQ2Chat - 1 error(s), 0 warning(s)
13>------ Build started: Project: MQ2Bzsrch, Configuration: Release Win32 ------
13>Compiling...
13>MQ2Bzsrch.cpp
13>c:\mq2\MQ2Main/MQ2Main.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
13>Build log was saved at "file://c:\mq2\MQ2Bzsrch\Intermediate\BuildLog.htm"
13>MQ2Bzsrch - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 13 failed, 0 up-to-date, 0 skipped ==========

Kiniktoo
a ghoul
a ghoul
Posts: 97
Joined: Sun May 16, 2004 8:18 pm

Post by Kiniktoo » Fri Jul 07, 2006 2:30 pm


Kiniktoo
a ghoul
a ghoul
Posts: 97
Joined: Sun May 16, 2004 8:18 pm

Post by Kiniktoo » Fri Jul 07, 2006 2:31 pm

http://www.microsoft.com/msdownload/pla ... nstall.htm

three clicks and a search string of "sdk xp" away from this thread. >cough<

Yunto?
a grimling bloodguard
a grimling bloodguard
Posts: 502
Joined: Sat Nov 19, 2005 12:05 pm

Post by Yunto? » Fri Jul 07, 2006 2:39 pm

Thanks for posting that massive and totally useless error listing!

We care about your needs, and will be with you soon. Or, you could use those two brain cells you have in your head and actually.. maybe.. read the wiki you said you did.

If you had followed instructions correctly, you wouldnt look like an idiot now.

Please hold for the next available representative.

Kiniktoo
a ghoul
a ghoul
Posts: 97
Joined: Sun May 16, 2004 8:18 pm

Post by Kiniktoo » Fri Jul 07, 2006 2:48 pm

devNull was right. sorta. he had the SDK files in the wrong spot/or not set to the right directory. blame MSN

smason
orc pawn
orc pawn
Posts: 12
Joined: Fri Jul 07, 2006 7:25 am

Post by smason » Fri Jul 07, 2006 2:51 pm

Yunto? wrote:Thanks for posting that massive and totally useless error listing!

We care about your needs, and will be with you soon. Or, you could use those two brain cells you have in your head and actually.. maybe.. read the wiki you said you did.

If you had followed instructions correctly, you wouldnt look like an idiot now.

Please hold for the next available representative.
The reason I posted the error message is in teh hope that some intelligent person out there would see this and a light bulb would come on and have an idea or know of a previous issue and would add some light to the error.
I wasnt looking for someone that has no idea about the error and instead of seeing the post and being not able to have any helpfull input and going on. They decide to post and make themselves look like an ass. You think anyone really posts on these boards 90 percent of the time WITHOUT looking and searching, knowing that they will get smart ass sarcastic remarks as yours above.

If iam missing something and its my error then so be it but to post a smart ass remark with no construction is a total waiste of my time and the boards space.

Kiniktoo
a ghoul
a ghoul
Posts: 97
Joined: Sun May 16, 2004 8:18 pm

Post by Kiniktoo » Fri Jul 07, 2006 2:56 pm

oooooooh you got told

Yunto?
a grimling bloodguard
a grimling bloodguard
Posts: 502
Joined: Sat Nov 19, 2005 12:05 pm

Post by Yunto? » Fri Jul 07, 2006 5:08 pm

smason wrote:If iam missing something and its my error then so be it but to post a smart ass remark with no construction is a total waiste of my time and the boards space.
Heres a tissue.

The only reason I got pissy and flamed is because (as was shown be the other posters) the answer to your problem wouldve easily been found in the wiki (which you said you read... skimming != reading) or by searching the board.

Make a dumb mistake, expect to be flamed.
edit: what was really a waste of the boards space was your huge error listing. Noone asked to see it, in fact, before you posted it, someone told you the answer to your problem.

smason
orc pawn
orc pawn
Posts: 12
Joined: Fri Jul 07, 2006 7:25 am

Post by smason » Fri Jul 07, 2006 7:43 pm

actually the reply was a RL friend post, we had just had a conversation about how keyboard jockys on forums get off on being ass's. He posted that to jack with me. The link he posted did not help. Anyway, anyone with constructive help would be pperciated .

Yunto?
a grimling bloodguard
a grimling bloodguard
Posts: 502
Joined: Sat Nov 19, 2005 12:05 pm

Post by Yunto? » Fri Jul 07, 2006 7:51 pm

smason wrote:actually the reply was a RL friend post, we had just had a conversation about how keyboard jockys on forums get off on being ass's. He posted that to jack with me. The link he posted did not help. Anyway, anyone with constructive help would be pperciated .
Jesus fucking christ.
http://macroquest2.com/phpBB2/viewtopic ... ss+compile

Search, 2005 compile error, all words, and it was one of the first 5.

Quit being a lazy ass.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jul 07, 2006 7:53 pm

And still you have not stated that you've downloaded and installed the required files, which have been linked.

You've been given the data, make use of it.

At least no one has told you to RTFM!
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

paulstacio
a lesser mummy
a lesser mummy
Posts: 45
Joined: Sun Jul 23, 2006 6:10 pm
Location: Oklahoma
Contact:

Plugin Compile Blues

Post by paulstacio » Mon Aug 07, 2006 3:50 am

I a having problems compiling plugins i must be doing sumthing wrong I have followed the steps in the winki exactly. I have
downloaded the Free MVC++ Express. Created a new project with the .vcproj extention, I have selected the data filed hit build then compile and saved the file. When I run the macro lazytank.mac I get a message that MQ2MoveUtlils was not detected and is required to run the program.
I am savin allmy files nthe macro folder ...should the .cpp files be paced some here else? When I Create a Project additonal fils ar created what do i do with them at esent i just select save all after i compile each C++ file?? I will be greatfull for any help i can get thanks. :shock:

Open up a command prompt (Start - Run - "cmd") and navigate to your MQ2 source directory (eg. cd \mq2-latest).
Type "mkplugin <plugin_name>". Use the name of the plugin from the forum post (eg. "mkplugin MQ2Melee").
This will create the directory under your MQ2 source root and add a few files in there. Go to this directory in Explorer and open the <plugin_name>.cpp file (eg. MQ2Melee.cpp) in your favourite text editor (notepad will work just fine). If you don't have any file extensions on your files (ie. none of them end with .cpp), then in Explorer go to Tools - Folder Options - View tab and untick "Hide file extensions for known file types".
Replace the contents of this file with the code copied from the forum post. This code will generally start with a header indicating the name of the plugin, author, and maybe a brief description of the function of the plugin. An example of the first few lines of the MQ2Melee plugin are below:
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=//
// MQ2Melee.cpp |
// Author: s0rCieR |
// Version: 3.000 |
// Date: 20060213 |
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=//
// #define aabug when alt abilities broken!
// #define cabug when combat abilities broken!
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=//

#include "../MQ2Plugin.h"
PreSetup("MQ2Melee"); PLUGIN_VERSION(3.000);
Some plugins require additional files to be included as well (eg. .ccp, .h or .inc). Just create these files in the plugin directory with the names as given in the forum post. Make sure to save them as plain text documents with the correct extension (ie. do not save them with .txt extension) otherwise the plugin will not find them.
After you've got the plugin created and all the files copied, open up the main MacroQuest2 project and add your newly created project:
In VS .NET, go to File->Add Project->Existing project, and select the <plugin_name>.vcproj (eg. MQ2Melee.vcproj).