Raised This Month: $40 Target: $400
 10% 

Solved Compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
redivcram
Veteran Member
Join Date: Jul 2014
Old 07-20-2018 , 15:51   Compiling
Reply With Quote #1

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 ==========

p.s.

I've set the environment variables for METAMOD and HLSDK.
__________________
Stuff I'm good at:
- Goldsource level designing
- Arty in World of Tanks


Last edited by redivcram; 07-25-2018 at 13:33.
redivcram is online now
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-21-2018 , 05:53   Re: Compiling
Reply With Quote #2

How does your project's folder structure look?
__________________
KliPPy is offline
redivcram
Veteran Member
Join Date: Jul 2014
Old 07-21-2018 , 16:05   Re: Compiling
Reply With Quote #3

*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.
__________________
Stuff I'm good at:
- Goldsource level designing
- Arty in World of Tanks

redivcram is online now
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-25-2018 , 09:08   Re: Compiling
Reply With Quote #4

Lacking public include and some others too
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
redivcram
Veteran Member
Join Date: Jul 2014
Old 07-25-2018 , 13:33   Re: Compiling
Reply With Quote #5

I've included them directly without environment variables. Everything works fine now.
Sorry, I haven't worked with VS in a while.
__________________
Stuff I'm good at:
- Goldsource level designing
- Arty in World of Tanks

redivcram is online now
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode