Bug 2857 – False Warning about not found lib

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2009-04-19T05:29:00Z
Last change time
2015-06-09T04:37:38Z
Assigned to
nobody
Creator
benoit

Comments

Comment #0 by benoit — 2009-04-19T05:29:28Z
When linking dwt snippets, i get this message: OPTLINK (R) for Win32 Release 8.00.1 Copyright (C) Digital Mars 1989-2004 All rights reserved. org.eclipse.swt.win32.win32.x86 Warning 2: File Not Found org.eclipse.swt.win32.win32.x86 However the example code links and work. I link a lot of libs, my response file looks like this: -IC:\Project\dwtinst\dwt-rcp\org.eclipse.jface.examples.databinding\src -IC:\Project\dwtinst\dwt-rcp\imp -JC:\Project\dwtinst\dwt-rcp\org.eclipse.jface.examples.databinding\res -JC:\Project\dwtinst\dwt-rcp\res -op -odC:\Project\dwtinst\dwt-rcp\obj -ofC:\Project\dwtinst\dwt-rcp\bin\BindSnippet004DataBindingContextErrorLabel.exe org\eclipse\jface\examples\databinding\snippets\Snippet004DataBindingContextErrorLabel.d -L/NOM -L+advapi32.lib -L+comctl32.lib -L+comdlg32.lib -L+gdi32.lib -L+kernel32.lib -L+shell32.lib -L+ole32.lib -L+oleaut32.lib -L+olepro32.lib -L+oleacc.lib -L+user32.lib -L+usp10.lib -L+msimg32.lib -L+opengl32.lib -L+shlwapi.lib -L+zlib.lib -L+dwt-base.lib -L+org.eclipse.swt.win32.win32.x86.lib -L+org.eclipse.osgi.osgi.lib -L+org.eclipse.osgi.supplement.lib -L+org.eclipse.equinox.common.lib -L+org.eclipse.core.runtime.lib -L+org.eclipse.core.commands.lib -L+org.eclipse.core.databinding.lib -L+org.eclipse.core.jobs.lib -L+org.eclipse.jface.lib -L+org.eclipse.jface.databinding.lib -L+C:\Project\dwtinst\dwt-rcp\lib\ Now I wonder, what is so special about "org.eclipse.swt.win32.win32.x86.lib" that only this is mentioned. Perhaps that there is a 3-letter "extension" before ".lib"? I don't know, but perhaps a track to the problem.
Comment #1 by andrej.mitrovich — 2013-03-11T20:54:13Z
Without a valid test-case we don't know what to fix here. My best guess is there was this pragma somewhere in the code: pragma(lib, "org.eclipse.swt.win32.win32.x86") This should have been: pragma(lib, "org.eclipse.swt.win32.win32.x86.lib")