Just ran into this error building the latest CVS source. I’m using VS 2008. Heres the error:
1>[ 99%] Linking executable built/bin/p3dWrapper.exe
1>direct/src/p3d/p3dWrapper.c : fatal error LNK1107: invalid or corrupt file: cannot read at 0xB78
I was able to rebuild by commenting out the p3dwrapper (lines 4537 thru 4550 in makepanda.bat)
which read as follows:
if (not RUNTIME and not RTDIST):
if (sys.platform.startswith(“win”)):
OPTS=[‘DIR:direct/src/p3d’]
TargetAdd(‘p3dWrapper.exe’, opts=OPTS, input=‘p3dWrapper.c’)
for g in glob.glob(“direct/src/p3d/*.p3d”):
base = os.path.basename(g)
base = base.split(".", 1)[0]
if (sys.platform.startswith("win")):
TargetAdd(base+".exe", input='p3dWrapper.exe')
CopyFile(GetOutputDir()+"/bin/"+base+".p3d", g)
else:
CopyFile(GetOutputDir()+"/bin/"+base, g)