problem with precompiled headers...

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
zeroflag
Goblin
Posts: 247
Joined: Mon Apr 03, 2006 3:48 pm

problem with precompiled headers...

Post by zeroflag »

Code: Select all

Event.obj : error LNK2005: ___@@_PchSym_@00@UpgUerhfzoLhgfwrlLCAAFUkilqvxghUltivUzmzxlmwzUnlwfovyzhvUwvyftUvevmgOlyq@ already defined in Module.obj
stdafx.obj : error LNK2005: ___@@_PchSym_@00@UpgUerhfzoLhgfwrlLCAAFUkilqvxghUltivUzmzxlmwzUnlwfovyzhvUwvyftUvevmgOlyq@ already defined in Module.obj
I'm only getting these when I try to compile with "Create Precompiled Header (/Yc)" turned on... without precompiled headers everything compiles and links just fine.

what am I doing wrong?

so long.
Bekas
OGRE Expert User
OGRE Expert User
Posts: 253
Joined: Sat Oct 16, 2004 11:21 pm
x 1

Post by Bekas »

"Create Precompiled Header" should be only on stdafx.cpp.

Event.cpp should have "Use Precompiled Header".
zeroflag
Goblin
Posts: 247
Joined: Mon Apr 03, 2006 3:48 pm

Post by zeroflag »

Bekas wrote:"Create Precompiled Header" should be only on stdafx.cpp.

Event.cpp should have "Use Precompiled Header".
thanks, I never noticed these options were per-file and not per-project. >_<
Post Reply