Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Compiler error (cannot find file...) C++

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 suliman   Members   

1599
Like
0Likes
Like

Posted 01 May 2014 - 01:21 AM

Hi

I clean and rebuild solution but still i get this, dont know how to solve it... Plz help.

I did have two versions of gameMaster (both cpp and h files) but the old one is gone and as far as i understand all references to it.

Where could the error lie? 

 

I have other projects that use the same gameMaster.h/cpp and they compile fine so im confused... Some crossreferencing or something?

 

Thanks alot!
Erik

 

 

1>------ Build started: Project: pirate, Configuration: Debug Win32 ------

1>Compiling...
1>gameMaster.cpp
1>c1xx : fatal error C1083: Cannot open source file: '.\gameMaster.cpp': No such file or directory
1>gameTown.cpp
1>Generating Code...
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.21022
1>Copyright © Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file '.\intermed\gameMaster.sbr': No such file or directory
1>pirate - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Edited by suliman, 01 May 2014 - 01:22 AM.


#2 DaBono   Members   

1473
Like
0Likes
Like

Posted 01 May 2014 - 03:04 AM

It seems it is looking for your gamemaker.cpp in the same directory as your project file. Is it there?

 

You may be able to fix this by removing the file from the solution in Visual Studio (keep a backup somewhere!) and dragging-and-dropping the file into the solution again.



#3 suliman   Members   

1599
Like
0Likes
Like

Posted 01 May 2014 - 03:20 AM

yes i found it!

(i had it included in the solution explorer two times, one time to the old file which dosnt exist)

 

Thanks!






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.