Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Linker error



Permlink Replies: 11 - Last Post: Jun 20, 2015 10:36 AM Last Post By: Fraser Ross Threads: [ Previous | Next ]
Fraser Ross

Posts: 36
Registered: 1/15/99
Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2015 2:29 AM
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Fraser.
david hoke

Posts: 616
Registered: 2/9/07
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2015 6:02 AM   in response to: Fraser Ross in response to: Fraser Ross
"Fraser Ross" <fraser.ross8ATbtinternet.com@com> wrote in message
news:726299 at forums dot embarcadero dot com...
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Not much information about your project, really, but...

Are you perhaps linking to some other library in your project, that has a
boost requirement?
Fraser Ross

Posts: 36
Registered: 1/15/99
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 12:59 AM   in response to: david hoke in response to: david hoke
On 15/06/2015 14:02, david hoke wrote:
"Fraser Ross" <fraser.ross8ATbtinternet.com@com> wrote in message
news:726299 at forums dot embarcadero dot com...
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Not much information about your project, really, but...

Are you perhaps linking to some other library in your project, that has a
boost requirement?
It links libraries made with a later compiler that I reinstalled. They
are not meant to require boost. I will probably locate the problem now.
Thanks.
Fraser Ross

Posts: 36
Registered: 1/15/99
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 3:37 AM   in response to: Fraser Ross in response to: Fraser Ross
On 16/06/2015 08:59, Fraser Ross wrote:
On 15/06/2015 14:02, david hoke wrote:
"Fraser Ross" <fraser.ross8ATbtinternet.com@com> wrote in message
news:726299 at forums dot embarcadero dot com...
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Not much information about your project, really, but...

Are you perhaps linking to some other library in your project, that has a
boost requirement?
It links libraries made with a later compiler that I reinstalled. They
are not meant to require boost. I will probably locate the problem now.
Thanks.
None of the libraries linked were made recently and Boost was not used
with them.
Borja Serrano

Posts: 172
Registered: 1/10/13
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 5:42 AM   in response to: Fraser Ross in response to: Fraser Ross
Have you tried to edit your ".cbproj" file to check if you find the Boost libraries there? Have you tried to create a new project and to add your source files to it?
Fraser Ross

Posts: 36
Registered: 1/15/99
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 8:08 AM   in response to: Borja Serrano in response to: Borja Serrano
On 16/06/2015 13:42, Borja Serrano wrote:
Have you tried to edit your ".cbproj" file to check if you find the Boost libraries there? Have you tried to create a new project and to add your source files to it?
Yes and it was not there. It is a .bdsproj file with CB2006. I suspect
one of the linked libraries has linked it. It will take a while to make
a new one.

Fraser.
Fraser Ross

Posts: 36
Registered: 1/15/99
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2015 9:02 AM   in response to: Fraser Ross in response to: Fraser Ross
On 16/06/2015 16:08, Fraser Ross wrote:
On 16/06/2015 13:42, Borja Serrano wrote:
Have you tried to edit your ".cbproj" file to check if you find the Boost libraries there? Have you tried to create a new project and to add your source files to it?
Yes and it was not there. It is a .bdsproj file with CB2006. I suspect
one of the linked libraries has linked it. It will take a while to make
a new one.

Fraser.

I have built new projects and the Boost LIB problem has gone. I now
have unresolved external linker errors with some global functions and
some functions in a namespace. The functions are declared in a header
file and defined in a source file. The project was linking and still
does with BDS2006.

Fraser.

Fraser Ross

Posts: 36
Registered: 1/15/99
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2015 10:36 AM   in response to: Fraser Ross in response to: Fraser Ross
On 20/06/2015 17:02, Fraser Ross wrote:
On 16/06/2015 16:08, Fraser Ross wrote:
On 16/06/2015 13:42, Borja Serrano wrote:
Have you tried to edit your ".cbproj" file to check if you find the Boost libraries there? Have you tried to create a new project and to add your source files to it?
Yes and it was not there. It is a .bdsproj file with CB2006. I suspect
one of the linked libraries has linked it. It will take a while to make
a new one.

Fraser.

I have built new projects and the Boost LIB problem has gone. I now
have unresolved external linker errors with some global functions and
some functions in a namespace. The functions are declared in a header
file and defined in a source file. The project was linking and still
does with BDS2006.

Fraser.


That bug was reported with QC report 120172.

There is a couple of other problems I have. I have set the
"Intermediate output" option to something and it doesn't appear to work.
The other is with the file locale line 129. It is preventing the use
of pre-compiled headers by the use of initialised data in a header.

Fraser.
Eike Petersen

Posts: 25
Registered: 4/19/02
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 7:46 AM   in response to: Fraser Ross in response to: Fraser Ross
Boost uses a flexible system to control whether libraries are linked statically or dynamically.

If you don't find the library in the project-file it is likely that it is linked via the Boost-linking system.

You will find something like this in "boost\config\auto_link.hpp" header of Boost which is implicitly included by the "regex"-part (regex\config.hpp) of Boost.

-- snip --

#ifndef BOOST_AUTO_LINK_NOMANGLE
# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION BOOST_LIB_SUFFIX)
# ifdef BOOST_LIB_DIAGNOSTIC
# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION BOOST_LIB_SUFFIX)
# endif
#else
# pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_SUFFIX)
# ifdef BOOST_LIB_DIAGNOSTIC
# pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_SUFFIX)
# endif
#endif

-- snap --

The "pragma comment(lib, ...)" statement will instruct the linker to look for this library when making your project.

I would suspect that somewhere in the project this header is included indirectly.

You could either define "BOOST_LIB_DIAGNOSTIC" in your project to find the source or just rename the "auto_link.hpp"-header which should make the compiler fail when it encounters the source which includes this.

On 16.06.2015 09:59, Fraser Ross wrote:

On 15/06/2015 14:02, david hoke wrote:
"Fraser Ross" <fraser.ross8ATbtinternet.com@com> wrote in message
news:726299 at forums dot embarcadero dot com...
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Not much information about your project, really, but...

Are you perhaps linking to some other library in your project, that has a
boost requirement?
It links libraries made with a later compiler that I reinstalled. They
are not meant to require boost. I will probably locate the problem now.
Thanks.
Eike Petersen

Posts: 25
Registered: 4/19/02
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 7:49 AM   in response to: Fraser Ross in response to: Fraser Ross
Boost uses a flexible system to control whether libraries are linked statically or dynamically.

If you don't find the library in the project-file it is likely that it is linked via the Boost-linking system.

You will find something like this in "boost\config\auto_link.hpp" header of Boost which is implicitly included by the "regex"-part (regex\config.hpp) of Boost.

-- snip --

#ifndef BOOST_AUTO_LINK_NOMANGLE
# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION BOOST_LIB_SUFFIX)
# ifdef BOOST_LIB_DIAGNOSTIC
# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION BOOST_LIB_SUFFIX)
# endif
#else
# pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_SUFFIX)
# ifdef BOOST_LIB_DIAGNOSTIC
# pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_SUFFIX)
# endif
#endif

-- snap --

The "pragma comment(lib, ...)" statement will instruct the linker to look for this library when making your project.

I would suspect that somewhere in the project this header is included indirectly.

You could either define "BOOST_LIB_DIAGNOSTIC" in your project to find the source or just rename the "auto_link.hpp"-header which should make the compiler fail when it encounters the source which includes this.

On 15.06.2015 11:29, Fraser Ross wrote:
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Fraser.
Eike Petersen

Posts: 25
Registered: 4/19/02
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 7:56 AM   in response to: Fraser Ross in response to: Fraser Ross
For some reason my answer does not appear in the newsgroups.

https://forums.embarcadero.com/thread.jspa?threadID=115877&tstart=0

The forums/newsgroups are a nightmare to use. ET never ceases to amaze me how they run their business...

On 15.06.2015 11:29, Fraser Ross wrote:
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Fraser.
Eike Petersen

Posts: 25
Registered: 4/19/02
Re: Linker error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 7:57 AM   in response to: Fraser Ross in response to: Fraser Ross
For some reason my answer does not appear in the newsgroups.

https://forums.embarcadero.com/thread.jspa?threadID=115877&tstart=0

The forums/newsgroups are a nightmare to use. ET never ceases to amaze me how they run their business...

On 15.06.2015 11:29, Fraser Ross wrote:
I am building my project with Turbo Explorer (CB2006) and it compiles in
release mode and finishes with this linker error: [Linker Fatal Error]
Fatal: Unable to open file 'LIBBOOST_REGEX-BCB-MT-S-1_35.LIB' Where is
the project being told to link this? It does not use Boost and Boost is
not installed. I also have the same problem when I build a copy of the
project with the XE8 trial compiler.

Fraser.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02