473,387 Members | 1,516 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,387 software developers and data experts.

Help understanding linking errors

Hey all,
I'm trying to write some C++ code for windows 7 which will connect to a mobile broadband network. When I run the first example at http://msdn.microsoft.com/en-us/library/ee677092(v=VS.85).aspx I get the following when compiling within visual studio:

1>testII.obj : error LNK2001: unresolved external symbol _CLSID_MbnInterfaceManager
1>testII.obj : error LNK2001: unresolved external symbol _IID_IMbnInterfaceManager

or when I compile with the "cl" command at the command prompt I get:

test.cpp
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

/out:test.exe
test.obj
test.obj : error LNK2019: unresolved external symbol _CLSID_MbnInterfaceManager referenced in function _main
test.obj : error LNK2019: unresolved external symbol _IID_IMbnInterfaceManager referenced in function _main
test.exe : fatal error LNK1120: 2 unresolved externals


It would seem I need to link so some library somewhere, can anyone tell me which library and how to link it? Do these errors have anything to do with the mbnapi.idl requirement?

Thanks a lot, appreciate it
Jul 24 '10 #1

✓ answered by cloudinsky

Solved it! What you need to do is include mbnapi_uuid.lib, thanks again for the tip Banfa.

3 2825
Banfa
9,065 Expert Mod 8TB
It looks like you have missing a library from your link, possibly WWanAPI.lib
Jul 25 '10 #2
@Banfa
Thanks for the suggestion Banfa, though there is no WWanAPI.lib to my knowledge, only WWanAPI.dll, any thoughts?
Jul 25 '10 #3
Solved it! What you need to do is include mbnapi_uuid.lib, thanks again for the tip Banfa.
Jul 25 '10 #4

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

Similar topics

0
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
1
by: murali | last post by:
Hi, I get tollowing linking errors Main.cpp:30 undefined reference to Matrix<int>::Matrix(int,int) whats that '' and what might be the problem ?? line 30 of main:...
0
by: SM | last post by:
Hi, While linking orbix C++ application, we get a lot of linking errors. Few errors are pasted below. If someone could tell us which are the libraries that need to be added, it would be of help....
0
by: Chris | last post by:
Hi I have a project that was written in V6.0 (c/c++) and it works just fine, but when I run it in .NET 2003 (V7.0), I get a whole lot of linking errors. I have spent alot of time trying to...
3
by: rich | last post by:
Hi there, I've been working with dynamic libraries for a quite big software and now and then I may get some weird linking errors, like following MSVCRTD.lib(MSVCR71D.dll) : error LNK2005:...
0
by: Adam Clauss | last post by:
I have managed C++ library (is bridging between a Win32 .dll and a C# application). All was well when compiled under VS2003, but I am running into a series of linking errors when compiling...
3
by: walkeraj | last post by:
I'm trying to compile an open source game called IVAN , and I'm able to compile it from a makefile, but not from an IDE. I have attempted to recreate the way the makefile compiles the project as...
2
by: Tammam | last post by:
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as...
2
by: Greg Corradini | last post by:
Hello All, A few weeks ago, I wrote two scripts using mx.ODBC on an Access DB. Among other things, both scripts create new tables, perform a query and then populate the tables with data in a...
2
by: pssraju | last post by:
Hi, At present application was built on solaris 9 using sun studio 9 (Sun C++ 5.6) & rouguewave sorce pro 5. We are planning to port the same application onto SuSE Linux 9.5.0 using GCC 3.3.3 & RW...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
Oralloy
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,...
0
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...

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.