I am trying to merge all sections, but trying to merge the .rsrc section gives me an error, what am I doing wrong ?

/MERGE:.text=.jnrz /MERGE:.rdata=.jnrz /MERGE:.data=.jnrz /MERGE:.rsrc=.jnrz /SECTION:.jnrz,rwe

LINK : warning LNK4108: /ALIGN specified without /DRIVER or /VXD; image may not run
LINK : warning LNK4078: multiple '.jnrz' sections found with different attributes (C0000040)
LINK : fatal error LNK1272: cannot merge '.rsrc' with any section

Posted on 2003-09-06 17:24:05 by Jnrz
Remove the line /MERGE:.rsrc=.jnrz and it will run fine. I think it is because you cannot merge the resource section with another due to the fact that it is different.
Posted on 2003-09-06 22:11:39 by roticv
1. don't use /ALIGN, use /FILEALIGN
2. don't ever mess with the resource section, nor change it's name. Messing with .rsrc will make your app break on various windows versions.
Posted on 2003-09-07 06:41:16 by f0dder