Compilation troubles......noob

M

modnoob

Guest
So I am using Visual Studio 2003 v7.1, a fresh installation.

I do the create a mod option and it creates all of the files and solution. I then open the Game_SDK solution and do a rebuild solution iwthout changing anything.

The HL prject builds fine but the client project fails immediately with the following error:
"c:\Program Files\Valve\Steam\SteamApps\r3yno\MyMod\src\cl_dll\stdafx.cpp(2): error C2857: '#include' statement specified with the /Yccbase.h command-line option was not found in the source file"

The file it references is all 1's and 0's. Is this correct?

Anyone have any idea what is going on here?

My computer at work has the same VS 2003 and it builds both projects fine.
 
Try to re-emerge your sdk copy.
So delete the SourceApps/modname dir and start from scratch ?
Or maybe try to create another mod first and see if that compiles.
If it doesn't compile, reinstall your steam would be my guess.

Not really sure bout all this, but files with all 1's and 0's sounds kinda illogical.
 
Thanks Red.
I didn't really believe this would solve my problem, but I tried it anyways and was unsuccessfull. Thanks for at least trying.

Anyone else have a suggestion?
 
Multiplayer or singleplayer mod?
At any rate, I'm a bit confused cause I have no such file (yccbase).
stdafx.cpp just contains a single line, #include "cbase.h"
 
This is what I get from src\cl_dll\cbase.h

Code:
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef CBASE_H
#define CBASE_H
#ifdef _WIN32
#pragma once
#endif

struct studiohdr_t;

#include <stdio.h>
#include <stdlib.h>

#include <tier0/platform.h>
#include <tier0/dbg.h>

#include <vstdlib/strtools.h>
#include <vstdlib/random.h>
#include <utlvector.h>

#include <const.h>

#include "string_t.h"

// These two have to be included very early
#include <predictableid.h>
#include <predictable_entity.h>

#include "cdll_util.h"
#include <util_shared.h>

#include <icvar.h>
#include <baseentity_shared.h>


// This is a precompiled header.  Include a bunch of common stuff.
// This is kind of ugly in that it adds a bunch of dependency where it isn't needed.
// But on balance, the compile time is much lower (even incrementally) once the precompiled
// headers contain these headers.
#include "precache_register.h"
#include "c_basecombatweapon.h"
#include "c_basecombatcharacter.h"
#include "gamerules.h"
#include "c_baseplayer.h"
#include "itempents.h"
#include "vphysics_interface.h"
#include "physics.h"
#include "c_recipientfilter.h"
#include "cdll_client_int.h"
#include "worldsize.h"
#include "engine/ivmodelinfo.h"

#endif // CBASE_H

Also no sign of the file Yccbase.*
 
Red, you sparked the solution to my prob. My whole cl_dll directory was all zeroes. It took awhile, but I reinstalled everything from steam up and I successfully built a solution. My roomate likes the cock. :)
You rock......problem solved.
 
Glad I could be of service,
as I said I'm not pro myself, but where I see an oppurtunity to help, I'd jump in anyday. :cool:
 
Back
Top