User forums > Help
fatal error LNK1104: cannot open file 'game.def'
sodev:
Stop posting screenshots!
Seriously, this does not only waste storage on the server, these pictures don't get indexed and you cannot quote or copy the text.
As can be seen your command line looks like
--- Quote ---link.exe ... /def:game.def D:\KingpinDev\Code\CodeBlock\CodeBlocks\Projects\Gamex86\Gamex86\Source\GAME.def /def:game.def
--- End quote ---
So you managed to break your settings even more! You still pass in the def file as regular linker input plus two times as mapping file with the still wrong path. And no, these settings don't go to the global compiler settings unless you want to use this def file for every project you compile...
I have some advice for you, you don't seem to know what you are doing and fail at even the most basic tasks, whatever you are doing, stop it. It won't work. Save yourself and us a lot of pain.
THE_SUFFERER:
Well, I kinda need it all. So, stopping won't bring me to success. I cleaned all other paths. Now it's exactly "game.def" that cannot be opened. I guess this is a step to the positive ending.
I can send a screenshot with the "game.def" compilation log, not with that long path but as I understood you didn't like me screens. I still hope you can help me because I am not going to stop. If not this forum, it will be a different one. I have to solve this thing. There's no other option for me.
stahta01:
--- Quote from: THE_SUFFERER on January 14, 2020, 07:33:22 pm ---Well, I kinda need it all. So, stopping won't bring me to success. I cleaned all other paths. Now it's exactly "game.def" that cannot be opened. I guess this is a step to the positive ending.
I can send a screenshot with the "game.def" compilation log, not with that long path but as I understood you didn't like me screens. I still hope you can help me because I am not going to stop. If not this forum, it will be a different one. I have to solve this thing. There's no other option for me.
--- End quote ---
Why did you tell Code::Blocks to compile or link a def file?
Edit2: Why do you resist copy and pasting the build log?
Tim S.
BlueHazzard:
Please copy and paste the build log. You can do this by going to the log tab select all, like you would select a text in the editor, then hit ctrl+C or right mouse button->copy selected text.
Following instructions helps us help you and we can be quicker to help you. Posting 100 screenshots with missing information does not help, and makes everything more agressive and complicated...
As sodev pointed out, you have to add the option
--- Code: --- /def:game.def
--- End code ---
to the linker settings. To fix this in this project there is only one place to do this:
Project->Build options->Select your project name at the left->Linker settings->Other linker options->Add
--- Code: --- /def:game.def
--- End code ---
You probably have to rebuild your project (Build->Rebuild)
If you still have a problem please post the full build log as text
greetins
oBFusCATed:
@THE_SUFFERER: Please do the following steps:
1. Restore everything as it was in the beginning of the thread.
2. Do a full rebuild
3. Go to the build log
4. Right click -> copy to clipboard.
5. Paste the result using \[code\] tags in a new post.
Until you do the above we cannot help you and you can only troll you.
Also post a screenshot of Project -> Properties -> Build options -> your target!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version