AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Solved Compiling (https://forums.alliedmods.net/showthread.php?t=309302)

redivcram 07-20-2018 14:51

Compiling
 
I'm using Visual C++ 2018 Express Edition and recently started going into module coding. I'm using the DOD Message Demo from the wiki. There's an error after compiling.

Code:

1>------ Build started: Project: test_mm, Configuration: Debug Win32 ------
1>Compiling...
1>amxxmodule.cpp
1>main.cpp
1>d:\hl mod toolkit\mod_cstrike\metamod\sdks\test_mm\test_mm\main.h(5) : fatal error C1083: Cannot open include file: 'amxxmodule.h': No such file or directory
1>Generating Code...
1>Build log was saved at "file://d:\HL Mod Toolkit\mod_cstrike\metamod\sdks\test_mm\test_mm\Debug\BuildLog.htm"
1>test_mm - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

https://images2.imgbox.com/35/8b/kolBIeZo_o.png
p.s.

I've set the environment variables for METAMOD and HLSDK.

klippy 07-21-2018 04:53

Re: Compiling
 
How does your project's folder structure look?

redivcram 07-21-2018 15:05

Re: Compiling
 
*gasp* I'm such an idiot. I apologize. I've mixed up files included in the project vs the files physically inside the folders. I've set everything as it should be now. All of the IDE Project folder files are in the physical folder together as well.

Right now. I'm stuck at extdll.h not being recognized. I've checked the environment variables pointing to the hlsdk multiplayer folder and metamod folder where metamod.h is and added Additional Include Directories in my IDE as following.

Code:

"$(METAMOD)";"$(HLSDK)\common";"$(HLSDK)\engine";"$(HLSDK)\dlls";"$(HLSDK)\pm_shared"
But the error still exists.

^SmileY 07-25-2018 08:08

Re: Compiling
 
Lacking public include and some others too

redivcram 07-25-2018 12:33

Re: Compiling
 
I've included them directly without environment variables. Everything works fine now.
Sorry, I haven't worked with VS in a while.


All times are GMT -4. The time now is 05:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.