help with compiling

T

Thugnasty

Guest
im new to modding and i was wondering how do i compile the weapon_smg1.cpp file

when i got to compile it i get
Compiling...
weapon_smg1.cpp
c:\half life 2 mod\src\dlls\hl2_dll\weapon_smg1.cpp(7) : fatal error C1083: Cannot open include file: 'cbase.h': No such file or directory
Error executing cl.exe.
 
Either include the dlls folder in the editors include directories, or provide a more exact location (not sure if "..\cbase.h" will work). That should do the trick... Until you get to all the other includes ;)
Its not very easy just to activate a HL2 weapon, as many of the HL2 files are deactivated if you are building the multiplayer version (if you are using the project file).
 
Compile the solution (.sln) file - you can't compile files by themselves.
 
nbk said:
Compile the solution (.sln) file - you can't compile files by themselves.
Well if he has already compiled it once, then he is only compiling that file. But you are right, he didnt give much info on how exactly he tried to compile it.
 
Back
Top