Click to See Complete Forum and Search --> : The linker report a warning: : warning LNK4039: section "001" specified with /SECTION option does no


leo liu
May 13th, 1999, 08:13 PM
Visual C++ 6.0/Windows 98

I use data_seg to define a section named 001.


#pragma data_seg("001")
long gl_nCounter;
HHOOK gl_hHook;
#pragma data_seg()




Then I use the /SECTION linker option
/SECTION:001,RWS
But when I build my project. The linker report a warning: : warning LNK4039: section "001" specified with /SECTION option does not exist

Then I run dumpbin with /HEADERS option, no section named 001 is found.
I'm appreciate for your help to tell me what's wrong with my code.