This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 158910

Summary: MSVS uses -L option insteadof of /link /libpath:
Product: cnd Reporter: charlweed <charlweed>
Component: ToolchainAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 160172    

Description charlweed 2009-02-20 17:51:54 UTC
Using -L with MSVS generate an unregognized option error.

The way to specify a link option to the MSVS linker is
/link /libpath:$(lib-dir-1)  /libpath:$(lib-dir-2) ... /libpath:$(lib-dir-n)

See
/LIBPATH (Additional Libpath): http://msdn.microsoft.com/en-us/library/1xhzskbe.aspx
Linker Options: http://msdn.microsoft.com/en-us/library/y0zzbyt4.aspx
Linker Command-Line Syntax: http://msdn.microsoft.com/en-us/library/hx5b050y.aspx
/link (Pass Options to Linker): http://msdn.microsoft.com/en-us/library/5y4fae15.aspx
Compiler Options Listed by Category: http://msdn.microsoft.com/en-us/library/19z1t1wy.aspx