Bug 269511 - A C++ app. which couldn't find a library terminates without error message
Summary: A C++ app. which couldn't find a library terminates without error message
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 5.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-20 09:55 EDT by Tibor Bekesi CLA
Modified: 2020-09-04 15:17 EDT (History)
1 user (show)

See Also:


Attachments
Demo application to quickly reproduce this bug (305.16 KB, application/octet-stream)
2009-03-20 09:55 EDT, Tibor Bekesi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tibor Bekesi CLA 2009-03-20 09:55:49 EDT
Created attachment 129451 [details]
Demo application to quickly reproduce this bug

Build ID: M20090211-1700

Steps To Reproduce:
1. Create two C++ projects using MinGW GCC toolchain: a shared library (TestDLL) and an executable (TestEXE) which uses (statically links) this shared library.
2. After setting project and other references and compiling your project, launch the program by Run As... -> Local C/C++ Application from within Eclipse IDE.
3. Program terminates immediately without any error message because it couldn't find the compiled library file (DLL).

However, the problem is that it does not display any error message, but it should.
If you start the executable program out of the IDE (from Command Prompt) you get the correct error message:

"TestEXE.exe - Unable To Locate Component

This application has failed to start because libTestDLL.dll was not found. Re-installing the application may fix this problem."

This error message is somehow swallowed when launching the application from Eclipse CDT IDE.