Commas in link command

Originally posted by minor28
When I am linking a hook procedure in a dll with un-initialized data section to be shared there is a error message.

My link switches are:

7,O,$B\LINK.EXE /SECTION:.bss,S /DLL /DEF:$6 /SUBSYSTEM:WINDOWS /LIBPATH:"$L",3

and the error message is:

LINK : fatal error LNK1181: cannot open input file "S /DLL /DEF:$6 /SUBSYSTEM:WINDOWS /LIBPATH:C:\masm32\Lib.obj"

Make error(s) occurred.

I can't figure out what's wrong

Answer from KetiO
The ',' confuses RadASM.
Replace it with '|' like this:

7,O,$B\LINK.EXE /SECTION:.bss|S /DLL /DEF:$6 /SUBSYSTEM:WINDOWS /LIBPATH:"$L",3

The '|' will be replaced with a ',' by RadASM in the final parsing.