473,324 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

error LNK2016: Absolute symbol '@comp.id' used as target of REL32relocation

I have an set of unmanaged C++ libraries that I have been
successfully using in a C++/CLI assembly which is in turn used by some
other .NET code (ASP.NET/C#). The C++ makes a lot of use of Boost and
STL. This is all working in VS 2005

I moved to VS 2008 and compiled up Boost 1_36

I have subsequently applied SP1 to VS2008.

When I attempt to compile and link the C++/CLI I get the error

error LNK2016: Absolute symbol '@comp.id' used as target of REL32
relocation

I have searched on Google and not got much joy.

I have tried everything I can think of and am getting very frustrated.

Can anyone help me please?

Many thanks.
Sep 19 '08 #1
3 3821

<aj******@hushmail.comha scritto nel messaggio
news:c6**********************************@b1g2000h sg.googlegroups.com...
>I have an set of unmanaged C++ libraries that I have been
successfully using in a C++/CLI assembly which is in turn used by some
other .NET code (ASP.NET/C#). The C++ makes a lot of use of Boost and
STL. This is all working in VS 2005

I moved to VS 2008 and compiled up Boost 1_36

I have subsequently applied SP1 to VS2008.

When I attempt to compile and link the C++/CLI I get the error

error LNK2016: Absolute symbol '@comp.id' used as target of REL32
relocation
Have you tried a complete rebuild of all your DLLs and .EXE using VS2008
SP1?

Giovanni

Sep 19 '08 #2
On 19 Sep, 18:49, "Giovanni Dicanio"
<giovanniDOTdica...@REMOVEMEgmail.comwrote:
<ajtay...@hushmail.comha scritto nel messaggionews:c6********************************** @b1g2000hsg.googlegroups.com...
I have an set of unmanaged *C++ libraries that I have been
successfully using in a C++/CLI assembly which is in turn used by some
other .NET code (ASP.NET/C#). The C++ makes a lot of use of Boost and
STL. This is all working in VS 2005
I moved to VS 2008 and compiled up Boost 1_36
I have subsequently applied SP1 to VS2008.
When I attempt to compile and link the C++/CLI I get the error
error LNK2016: Absolute symbol '...@comp.id' used as target of REL32
relocation

Have you tried a complete rebuild of all your DLLs and .EXE using VS2008
SP1?

Giovanni
I am going to try that this morning. Currently rebuilding Boost 1_36
with SP1.

I am not overly optimistic that will resolve it to be honest.

May have to go back to using VS 2005.
Sep 22 '08 #3
On 22 Sep, 09:21, ajtay...@hushmail.com wrote:
On 19 Sep, 18:49, "Giovanni Dicanio"

<giovanniDOTdica...@REMOVEMEgmail.comwrote:
<ajtay...@hushmail.comha scritto nel messaggionews:c6********************************** @b1g2000hsg.googlegroups.com...
>I have an set of unmanaged *C++ libraries that I have been
successfully using in a C++/CLI assembly which is in turn used by some
other .NET code (ASP.NET/C#). The C++ makes a lot of use of Boost and
STL. This is all working in VS 2005
I moved to VS 2008 and compiled up Boost 1_36
I have subsequently applied SP1 to VS2008.
When I attempt to compile and link the C++/CLI I get the error
error LNK2016: Absolute symbol '...@comp.id' used as target of REL32
relocation
Have you tried a complete rebuild of all your DLLs and .EXE using VS2008
SP1?
Giovanni

I am going to try that this morning. Currently rebuilding Boost 1_36
with SP1.

I am not overly optimistic that will resolve it to be honest.

May have to go back to using VS 2005.
It seems I can make this error go away by removing my use of

#pragma unmanaged
#pragma managed

and

#ifdef _MANAGED
#pragma managed(push, off)
#endif

#ifdef _MANAGED
#pragma managed(pop)
#endif
The confusing thing is that I need to add these pragmas in VS 2005 as
I was getting all sorts of compile time and runtime errors mainly it
has to be said using the BOOST libs.

In the end I wrapped the boost #includes in these pragmas and my
problems went away.

Now in VS 2008 it seems that these are the cause of my LNK2016 errors.

I haven't done much testing of this code - will report back if have
any further errors.
Sep 22 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jgctr4 | last post by:
I'm trying to print an HTML file using AxWebBrowser.ExecWB but it it gives a run time error "Trying to revoke a drop target that has not been registered". Does anyone have any suggestions? ...
1
by: Tony Johansson | last post by:
Hello! I get compile error when compiling using the command javac from the command terminal window(CMD). I have just two classes which are called HelloWorld.java and Slask.java. I have both...
4
by: Phil Campaigne | last post by:
Hi All, I just installed postgresql 7.3.4 as an upgrade to 7.3.2 and all went well untill I tried to log into a database that I successfully created. Here are the steps in question: bash-2.05b$...
5
by: NTPT | last post by:
Regardi I recently compile Postgresql 7.4.3 with gcc 3.4.0 on RH 7.3 . Regression tests work well All passed, but Some binaries report a relocation error: :pg_dumpall undefined symbol...
6
by: Dino Vliet | last post by:
Hi there, I want to put a number of records (variable number depending on a attribute of a table) into a certain table with a trigger statement. I have created the follwing trigger: CREATE...
8
by: Pedro Pinto | last post by:
When compiling my program i got this error: Error: 'for' loop initial declaration used outside c99 mode What is it and how can i solve it? Thanks in advance! Regards
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
3
by: Sindhu Rani | last post by:
i hav created 3 classes in 3 different files. am gettin an error durin compilation. wat shud i do??? C:\s\source>javac -d ..\classes devtestdrive.java devtestdrive.java:5: cannot resolve symbol...
2
by: ramrk | last post by:
I have installed Oracle 11g on OracleEnterpriseLinux. I've logged in as sysdba, and I've given the command "startup." I got a response that the database was open. after network configuration i gave...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.