473,769 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

#including .h files from a .dll project, I can't get it to work!

I have a .dll project with both __gc and __nogc classes, managed and
unmanaged code. In my unmanaged code, I want to call sqrt() from math.h.
So, I've #included <math.h> in the .cpp file, but I'm getting an unresolved
external symbol linker error. I have the same code in an .exe project and
it works fine. What the hell, Mel?
Nov 16 '05 #1
1 1014
-----Original Message-----
I have a .dll project with both __gc and __nogc classes, managed andunmanaged code. In my unmanaged code, I want to call sqrt () from math.h.So, I've #included <math.h> in the .cpp file, but I'm getting an unresolvedexternal symbol linker error. I have the same code in an .exe project andit works fine. What the hell, Mel?
.


Check to make sure you're linking against the C std
library. This could one of several .libs depending on if
you need multi-threaded support, if you're static linking
etc... Check out:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vccore98/html/_crt_c_run.2d.t ime_libraries.a sp
for information about linking to the std c libs and the
std cpp libs.

Jackson Davis [MSFT]
--
This posting is provided "AS IS" with no warranties, and
confers no rights
Samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Nov 16 '05 #2

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

Similar topics

7
2676
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This seems to be the brute force method, and I'm wondering if anyone can think of a better strategy. I've been asked to make life easy on graphic designers by not making assumptions about where I might find the files that the software might need to...
0
1909
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others. Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
10
9924
by: TokiDoki | last post by:
Hello there, I have been programming python for a little while, now. But as I am beginning to do more complex stuff, I am running into small organization problems. It is possible that what I want to obtain is not possible, but I would like the advice of more experienced python programmers. I am writing a relatively complex program in python that has now around 40 files.
5
5689
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere 4.0, SourceOffSite 4.1, VSS Connect 1.5, SourceXT 2.1, VSS Remoting 2.5,
0
3292
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
6
2305
by: Alan Krueger | last post by:
Is there a way to automatically include C# files (.cs) generated by a third-party tool into a Visual C# .NET build? It's possible the set of files generated by this tool might change. Adding these files manually to the project would work in the short term, but this would require manual intervention if these generated files happened to change, and I'd like to avoid any unnecessary manual steps. NAnt and similar tools can include and...
1
997
by: Steve Long | last post by:
Hello, I'm not sure how to get my setup and deployment project to include some files not picked up by the installation. I also need to tell it where to put those files cause they can't go in the installation folder. So, I have some files that need to go into the Program Files\Common Files\ folders and a couple of folders below that. Can anyone tell me how to make that happen in my setup project. Syntax examples maybe? Thanks
3
7097
by: Steve Teeples | last post by:
I have a simple application built with several DLLs that access XML files for information. My local setup works just fine. As defined in my Install folder, the files are copied to the "application folder" and the DLLs find them just fine. However, when I publish the same application to a local server for users to use the "click once" install feature, my XML, XMS files are NOT copied to the local machine's application folder. All other...
7
1437
by: Shelly | last post by:
Please tell me the best way to do this (I am still new to VB.NET and ASPX) as this should very easy for anyone with any experience to answer. In the code behind file (filename.aspx.vb), I import things that are namespace imports in the main file (filename.aspx). These are from the core set. I would also like to have a set of functions that I write and use in many pages, so that I write them once and for all and be done with it without...
3
2574
by: KIRAN | last post by:
Hello all, My question is about the way of including header files(*.h) in source files (*.c) I have three folders, -build ( for project makefiles) -include ( for *.h files) -src (for *.c files). I know that there are two ways of specifying include path of header files
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9866
tracyyun
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...
0
8876
agi2029
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...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
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
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
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...

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.