User forums > Help

fatal error LNK1104: cannot open file 'game.def'

<< < (3/7) > >>

THE_SUFFERER:

--- Quote from: sodev on January 12, 2020, 09:25:24 pm ---
--- Quote from: THE_SUFFERER on January 12, 2020, 07:23:23 pm ---Moreover, I was doing everything due to the instruction - https://kingpin.info/?p=compiling-with-codeblocks

--- End quote ---

No you didn't. The author of that "guide" doesn't seem to know what he is really doing and therefor offers some random try-and-error advices how to fix things because he did them wrong in the first place.

One of these advices is to try different path specifications to that def file. That seems to be the problem in your case, that file is not in the working directory of the compiler which should be the directory of the CodeBlocks project file. Determine the relative path to the def file starting at the directory of the project file and add that to the compiler settings, then it will be found.

--- End quote ---

THE_SUFFERER:

--- Quote from: sodev on January 12, 2020, 09:25:24 pm ---
--- Quote from: THE_SUFFERER on January 12, 2020, 07:23:23 pm ---Moreover, I was doing everything due to the instruction - https://kingpin.info/?p=compiling-with-codeblocks

--- End quote ---

No you didn't. The author of that "guide" doesn't seem to know what he is really doing and therefor offers some random try-and-error advices how to fix things because he did them wrong in the first place.

One of these advices is to try different path specifications to that def file. That seems to be the problem in your case, that file is not in the working directory of the compiler which should be the directory of the CodeBlocks project file. Determine the relative path to the def file starting at the directory of the project file and add that to the compiler settings, then it will be found.

--- End quote ---

THE_SUFFERER:

--- Quote from: sodev on January 12, 2020, 09:25:24 pm ---
--- Quote from: THE_SUFFERER on January 12, 2020, 07:23:23 pm ---Moreover, I was doing everything due to the instruction - https://kingpin.info/?p=compiling-with-codeblocks

--- End quote ---

No you didn't. The author of that "guide" doesn't seem to know what he is really doing and therefor offers some random try-and-error advices how to fix things because he did them wrong in the first place.

One of these advices is to try different path specifications to that def file. That seems to be the problem in your case, that file is not in the working directory of the compiler which should be the directory of the CodeBlocks project file. Determine the relative path to the def file starting at the directory of the project file and add that to the compiler settings, then it will be found.

--- End quote ---

THE_SUFFERER:

--- Quote from: sodev on January 12, 2020, 09:25:24 pm ---
--- Quote from: THE_SUFFERER on January 12, 2020, 07:23:23 pm ---Moreover, I was doing everything due to the instruction - https://kingpin.info/?p=compiling-with-codeblocks

--- End quote ---

No you didn't. The author of that "guide" doesn't seem to know what he is really doing and therefor offers some random try-and-error advices how to fix things because he did them wrong in the first place.

One of these advices is to try different path specifications to that def file. That seems to be the problem in your case, that file is not in the working directory of the compiler which should be the directory of the CodeBlocks project file. Determine the relative path to the def file starting at the directory of the project file and add that to the compiler settings, then it will be found.

--- End quote ---

By the way, I even put this file into each directory I also mentioned (include\libs...) but still nothing... ;D

THE_SUFFERER:

--- Quote from: sodev on January 12, 2020, 09:25:24 pm ---
--- Quote from: THE_SUFFERER on January 12, 2020, 07:23:23 pm ---Moreover, I was doing everything due to the instruction - https://kingpin.info/?p=compiling-with-codeblocks

--- End quote ---

No you didn't. The author of that "guide" doesn't seem to know what he is really doing and therefor offers some random try-and-error advices how to fix things because he did them wrong in the first place.

One of these advices is to try different path specifications to that def file. That seems to be the problem in your case, that file is not in the working directory of the compiler which should be the directory of the CodeBlocks project file. Determine the relative path to the def file starting at the directory of the project file and add that to the compiler settings, then it will be found.

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version