473,884 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to link dll in a VS 2008 project?

2 New Member
Hi!

I am making a project in Visual Studio 2008 with making use of integrated Intel Fortran Compiler (ver. 11.1). The program is written in Fortran and uses netCDF for writing results of its calculations.

When I worked with this program using old Compaq Visual Fortran, there were no problems niether with the code nor with netCDF (only 3 files related to netcdf were used: netcdf.fi, netcdf.dll and netcdf.lib). But now, when I rebuilt it in VS 2008, an error occured related to netCDF (as I suggest...). The error text is as follows:

1>Linking...
1>pom2k_CDF.ob j : error LNK2019: unresolved external symbol _NF_STRERROR referenced in function _HANDLE_NETCDF_ ERROR
1>pom2k_CDF.ob j : error LNK2019: unresolved external symbol _NF_DEF_VAR referenced in function _DEF_VAR_NETCDF

and so on (10 errors of this type).

What can be wrong with it? The compiling stage is OK, but on the stage of linking (as shown above) these errors occur...


PS: all project files are *.f (fortran fixed format), also the header netcdf.fi is included in the project and netcdf.dll is put in the project directory. But the errors remain...

Thanks in advance!
Mar 5 '11 #1
2 3115
odnustuk
2 New Member
I've solved the problem. Looks like it was caused by the error of the VS integrated linker. For some reason it did not take the set parameters, therefore it could not link necessary files. Rebuilding the project with setting corresponding parameters solved the problem.
Mar 6 '11 #2
bohluly
1 New Member
I need using netCDF in Intel FORTRAN project, If it is possible please send your project or sample of your project for me.
It will help me a lot!
My email is
Sincerely yours.
Jan 6 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4382
by: yanwan | last post by:
Hello I met some problems in linking a project, and hope someone can give me some advice. -----------Configuration: lighting - Win32 Release-------------------- Linking... LINK : warning LNK4075: ignoring /INCREMENTAL due to /FORCE specification LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __exit already defined in
0
1823
by: parekh | last post by:
Hi All , I am facing a problem wherein my VB project is not recognizing a change in the argument list of a method ( the method itself being declared and defined in another VC++ project and it is now updated to accept one more additional argument ). The problem in detail is as follows: I have a Class (named Student ) in an existing VC++ project. One of its Methods has the following signature and accepts 2 arguments ...
1
2871
damonreid
by: damonreid | last post by:
Firstly is it possible to take values from Project and use it to populate fields in access and secondly if it is does anyone have a tutorial? I can't appear to find anything online other then. http://www.projectperfect.com.au/info_msp_reports.php which appears force you to take all fields. I would like to populate existing fields with parts of the output if possible. Thanks, Damon
1
1262
by: Nhlaisaac | last post by:
Hi I have created an access database that stores and retrieves all necessary administration information. I would like to make this data base accessable to relevant personnel through a sever or any form of connection, but I don't have a clue on how to do this. Will someone please help me?
1
1688
by: Jim Langston | last post by:
I'm trying to compile some source code to interface LUA into C++. When I compile in MSVC++ Express 2008, however, I get the error (among others): ....\luastate.h(129) : error C2027: use of undefined type 'cpplua::LuaFunction' ....\luastate.h(63) : see declaration of 'cpplua::LuaFunction' So I'm trying to track this down. I see that there is a function trying to return LuaFunction Like this:
4
1498
by: Man T | last post by:
I want to build a C# 2008 project step by step approach to learn it rather than reading a reference book. Any recommendations?
0
1002
by: Steve House | last post by:
I'm relatively new to VB 2005/2008 having done most of my work in VB6 and VBA. I'd like to deploy a VB 2008 project that doesn't need to be installed other than the controls in the GAC and the appropriate dotnet framework version, where the registry isn't updated. All I needed in Access was to update the mdb or update the exe in a VB6 project in the local directory. I already have a routine that looks for programs with a later...
1
2258
by: coolsti | last post by:
Can anyone tell me the best way to copy an entire existing project in Visual Studio 2008 Express using C# to another project with another name? I cannot seem to find such an option in the menu structure. I can only seem to find where I save individual cs files, or "save" the entire project which saves it under its current name. I want to start making some radical changes to an existing project but want to save a copy of the project as it...
3
1957
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hi, I am trying to create a Windows Service for Vista/Server 2003/XP machines. I used the Wizard in VS 2008 to create the basic service. I am using Visual C++ and used the "Windows Service" template (Under CLR). It states that you install the compiled service by typing: MyService.exe -Install
0
2278
by: arfte | last post by:
Hi, guys If you open http://support.microsoft.com/kb/310674 link, you will see there are several ways that make using references in a Managed C++ application. I tried all of them, but i still cannot see the object of the dll reference project. My project is a mixed mode project which contains normal C++ MFC classes and a managed C++ class which communicates with external dll objects. From my managed C++ class I am going to add the dll...
0
9954
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
9799
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
10769
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...
1
10869
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,...
0
10426
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
9591
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
5808
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...
0
6009
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3242
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.