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 267591 - Error in linker path (Windows)
Summary: Error in linker path (Windows)
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-16 02:08 UTC by emezav
Modified: 2016-09-01 17:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emezav 2016-08-16 02:08:51 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens every time

STEPS:
  * Create a  new C/C++ Dinamic Library Project (Project A), MinGW compiler (installed).
  * Add a new C++ Class and header file
  * Build Dinamic Library Project -> Build Successful!
  * Create a new C/C++ Application Project (Project B), C++ 11, create main file,  MinGW compiler
  * Select Project B -> Project Properties -> Build -> Linker -> Libraries -> [...] -> Add Project -> Project A from steps before
  *  Select Project B -> Project Properties -> C++ Compiler -> Include directories -> [...] -> Add -> Project A from steps before
  *  Build Project B -> Error!

ACTUAL:
  Build  fails:
  g++     -o dist/Debug/MinGW-Windows/myapplication build/Debug/MinGW-Windows/main.o -LC\:/Users/Erwin/Desktop/MyLibrary/dist/Debug/MinGW-Windows -lMyLibrary 

  C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/6.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lMyLibrary

CAUSE:
   -LC\:/Users/Erwin/Desktop .... <- This path is wrong! should be -LC:/Users/Erwin/Desktop.... If fixed manually on Makefile,  project builds successfully.

EXPECTED:
  Project B (MyApplication) should build. Error in path provided to -L option
Comment 1 soldatov 2016-08-18 08:06:04 UTC
Which "make" you are using? Mingw-make or msys-make?
Comment 2 soldatov 2016-08-18 19:50:13 UTC
confirmed