I have a visual studio 2005 project that consists of two managed C++ classes
and some unmanaged C functions. The output of this project is a dll,
that is loaded by a program with LoadLibrary().
Then I have written a makefile that uses the same compiler and linker
options to generate this dll.
Now the dll created by the project works fine while the dll from the
makefile refuses to load (GetLastError returns 126, file not found).
In both cases LoadLibrary() is called with the absolute path, so there
is no way not to find it.
DUMPBIN /dependents shows the same dependencies, but under summary, the
project dll has one additional entry:
1000 .rsrc
The same for DUMPBIN /imports (plus a slight difference in the ordering of
the functions).
DUMPBIN /exports shows the functions like this:
8 7 00001040 freePointer for the project
8 7 00001F20 freePointer = _freePointer for the makefile
Can anybody say, what is wrong with my makefile?
Everything used to work before I upgraded to VS2005.
TIA
Ralf Propach 2 1437
Ralf Propach wrote: I have a visual studio 2005 project that consists of two managed C++ classes and some unmanaged C functions. The output of this project is a dll, that is loaded by a program with LoadLibrary(). Then I have written a makefile that uses the same compiler and linker options to generate this dll.
Now the dll created by the project works fine while the dll from the makefile refuses to load (GetLastError returns 126, file not found). In both cases LoadLibrary() is called with the absolute path, so there is no way not to find it.
DUMPBIN /dependents shows the same dependencies, but under summary, the project dll has one additional entry: 1000 .rsrc The same for DUMPBIN /imports (plus a slight difference in the ordering of the functions). DUMPBIN /exports shows the functions like this: 8 7 00001040 freePointer for the project 8 7 00001F20 freePointer = _freePointer for the makefile
Can anybody say, what is wrong with my makefile?
Everything used to work before I upgraded to VS2005.
I guess you're missing the manifest that is mandatory for linking
against the CRT in Visual 2005. This manifest is generated by the
linker and used by the manifest tool (mt.exe) to be embeeded in the DLL
as a ressource. See http://msdn2.microsoft.com/en-US/lib...91(VS.80).aspx for the
gory details.
Arnaud
MVP - VC TIA
Ralf Propach ad******@club-internet.fr wrote:
I guess you're missing the manifest that is mandatory for linking against the CRT in Visual 2005. This manifest is generated by the linker and used by the manifest tool (mt.exe) to be embeeded in the DLL as a ressource. See http://msdn2.microsoft.com/en-US/lib...91(VS.80).aspx for the gory details.
Arnaud MVP - VC
TIA
Ralf Propach
Yes, that was the problem!
Thanks!
Ralf This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bryan Olson |
last post by:
Here's the problem: Suppose we use:
import socket
f = some_socket.makefile()
Then:
f.read() is efficient, but verbose, and incorrect (or at
least does not play will with others);
|
by: tmponko |
last post by:
OK...I'm new to this and I'm sure I'm missing something obvious, so
please be kind.
I've tried several different approaches to this problem (including
various if, ifeq, and case constructs), and I'm about to give up. Can
any tell me why this doesn't work? In a nutshell, I want a Makefile
that will "include" either a Linux.mk or a SunOS.mk without having to
rely on an explicit command line parameter or env var.
Here is the segment that...
|
by: Gg |
last post by:
Hi,
I have a project that depends on other projets. So I have a Makefile
that calls Makefile of sub-projects to build the libs if needed.
Once libs are built, the main Makefile link everything and make the
executable.
For dependencies of .h files, I solved the problem, but I still have a
problem for dependencies of libs. For example if I change nothing in
the subprojects, when I run the makefile, it calls all makefiles of
subprojects...
|
by: Dave |
last post by:
Does anyone know of a Windows compatible command line tool that capable
of parsing Microsoft's VC++ workspace/project (e.g., .dsw, .dsp, .sln,
..vcproj, etc.) files and generating an nmake-compatible Makefile. I
don't like or use the IDE but many authors distribute their source code
with project files but no makefile.
Thanks.
Dave
|
by: Juhan Voolaid |
last post by:
Hello
I need help with my makefile, so that when I compile my project the
source code files would be separated from the object (*.o) files.
So if I have: main.cpp and classes.cpp - the filestructure should be
like that:
project_dir/
source_dir/
main.cpp
| |
by: dolphin |
last post by:
Hi! I am learing makefile recently.Now I have a problem.
I write a very simple program just like "hello world"
I write two makefile for it.One is included in another.
the first is makefile
include mainmake.mk
example:main.o
cc -o example main.o
clean:
rm -f *.o
|
by: %NAME% |
last post by:
I wish to put a number of .db2 scripts in my makefile. However,
some of the db2 scripts tries to revoke privileges from users that
might do not have that privilege already, thus returns an error to
the
shell. I do not want the makefile to stop there, but simply ignore the
errors.
For example, I have the following in my makefile
run:
|
by: ahlongxp |
last post by:
socket.makefile() may lose data when "connection reset by peer".
and socket.recv() will never lose the data.
change the "1" to "0" in the client code to see the difference.
confirmed on both windows and linux.
so I guess there is a problem with makefile().
# Echo server program
|
by: rpjanaka |
last post by:
I am using an open source library called IGI_UDP for measure the available bandwidth of a link (http://www.cs.cmu.edu/%7Ehnn/igi/ ).
with that library they have provided a "Makefile" which is not an auto generated one.
the following is the given Makefile,
*****************************************************************
CC = gcc
INCS = -I.
CFLAGS = -g -Wall $(DEFS) $(INCS)
|
by: chutsu |
last post by:
I'm basically a summer student working on a program called Rivet.
(http://projects.hepforge.org/rivet/) And I'm trying to port it to
BOINC so that the hosts can download the BOINC client and do some
calculation over a large clusters of computers.
Me being an absolute beginner at programming, I don't know how to
update the Makefile in Rivet! I edited the Makefile.am in the src
directory to include the BOINC APIs and Libraries, but what do...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |