Handmade Hero»Forums»Code
25 posts
None
Day23|error LNK1181:: cannot open input file<.pdb>
Edited by ThadeuMelo on
I´m up to day 23 and everything was working fine for the looping, reloading and playing the users input... well, after I cut down the size of foo.hmi file to "only" 40MB.

However about one hour ago I don´t know what I did, everytime I try to compile the projet I get this message.

1
2
3
handmadehero.cpp
LINK : fatal error LNK1181: cannot open input file '03654.pdb'
Win32_main_handmadehero.cpp


Every time it ask for a different pdb file. Everyting was working fine.

So, I´m unable to instant see changes I´ve made in the game code, it´s not linking any more.

Have I´ve missed someting in the youtube stream?

Edit:
Well, I think I´ve found the problem... kind off.

1
handmade_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.pdb


has started outputing this kind of string:

handmade_20152501_ 12457.pdb

Noticed the space between the day and the hour?

So, why this $#%#$ is happenning? It was working fine just before midnight, and then... BOOOMM..
Jace Bennett
5 posts
Day23|error LNK1181:: cannot open input file<.pdb>
Casey fixes this in a later episode. The latest code uses handmade_%random%.pdb
25 posts
None
Day23|error LNK1181:: cannot open input file<.pdb>
I could have wait only one more day.

It´s still weird it had been working fine for days and then the space starts being included.
Roderic Bos
70 posts
Day23|error LNK1181:: cannot open input file<.pdb>
You only coded after 12:00 noon then, otherwise the timestamp would be _x:xx with a space start due to the string replacements.