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 » Tue May 30, 2006 10:21 am

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.
0 x

Bekas
OGRE Expert User
OGRE Expert User
Posts: 253
Joined: Sat Oct 16, 2004 11:21 pm

Post by Bekas » Tue May 30, 2006 12:46 pm

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

Event.cpp should have "Use Precompiled Header".
0 x

zeroflag
Goblin
Posts: 247
Joined: Mon Apr 03, 2006 3:48 pm

Post by zeroflag » Tue May 30, 2006 1:04 pm

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. >_<
0 x

Post Reply