Raised This Month: $12 Target: $400
 3% 

Solved Compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 07-20-2018 , 14: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.

Last edited by redivcram; 07-25-2018 at 12:33.
redivcram is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-21-2018 , 04: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
Location: Serbia
Old 07-21-2018 , 15: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.
redivcram is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-25-2018 , 08: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)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 07-25-2018 , 12: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.
redivcram is offline
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 08:19.


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