473,385 Members | 2,028 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,385 software developers and data experts.

How to find the library name give a system include file

I have a cpp program that use to compile in C++6 but gives a bunch of
errors in VS2005

Error 12 error LNK2019: unresolved external symbol _strstr referenced in
function "char * __cdecl strstr(char *,char const *)"
(?strstr@@YAPADPADPBD@Z) AnnGame.obj

I'm wondering if I'm missing a library or two.

If I look up strstr I find I need <string.hwhich I have.

But in the doc I can't seen to learn what library is needed.

Can you tell me how to find the library name give a system include file?
thanks
Dec 24 '06 #1
4 1988
>I have a cpp program that use to compile in C++6 but gives a bunch of
>errors in VS2005

Error 12 error LNK2019: unresolved external symbol _strstr referenced in
function "char * __cdecl strstr(char *,char const *)"
(?strstr@@YAPADPADPBD@Z) AnnGame.obj
That error looks a bit odd. Do you have your own function named strstr
in module AnnGame?
>I'm wondering if I'm missing a library or two.
I think that the library containing strstr would be a standard one
depending on the compiler run-time model you've used. You shouldn't
need to explicitly specify it unless you're using the NODEFAULTLIB
switch.

You don't by any chance have a path to the VC6 libraries that's
causing the linker to pick up the old libraries before the new ones?

Merry Christmas
Dave
Dec 24 '06 #2

"David Lowndes" <Da****@example.invalidwrote in message
news:kg********************************@4ax.com...
I have a cpp program that use to compile in C++6 but gives a bunch of
errors in VS2005

Error 12 error LNK2019: unresolved external symbol _strstr referenced in
function "char * __cdecl strstr(char *,char const *)"
(?strstr@@YAPADPADPBD@Z) AnnGame.obj

That error looks a bit odd. Do you have your own function named strstr
in module AnnGame?
No. I checked
>
>>I'm wondering if I'm missing a library or two.

I think that the library containing strstr would be a standard one
depending on the compiler run-time model you've used. You shouldn't
need to explicitly specify it unless you're using the NODEFAULTLIB
switch.

You don't by any chance have a path to the VC6 libraries that's
causing the linker to pick up the old libraries before the new ones?
Property Pages for the project:
Configuration Properties/ Linker/ Command Line::
/OUT:".\Release/AnnGame.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST
/MANIFESTFILE:".\Release\AnnGame.exe.intermediate.m anifest"
/NODEFAULTLIB:"LIBCMT.LIB" /PDB:".\Release/AnnGame.pdb" /SUBSYSTEM:WINDOWS
/MACHINE:X86 /ERRORREPORT:PROMPT odbc32.lib odbccp32.lib comctl32.lib
htmlhelp.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib

I see the NODEFAULTLIB:"LIBCMT.LIB" but don't know how to remove it. I
can't edit it in the property pages.
>
Merry Christmas
Dave
same to you and thanks
Dec 24 '06 #3
>I see the NODEFAULTLIB:"LIBCMT.LIB" but don't know how to remove it. I
>can't edit it in the property pages.
Is it not showing in the Linker, Input, Ignore Specific Library entry?

If you click the ... for that item, does it show up in the inherited
values? If it's in the inherited values, is it defined in a property
manger setting?

Merry Christmas
Dave
Dec 24 '06 #4
Thanks, you were correct, it was the NODEFAULTLIB. Under
"linker/input/ignore library" was a reference to LIBCMT.LIB which resulted
in NODEFAULTLIB:"LIBCMT.LIB" being on the Command line entry. Removing
LIBCMT.LIB from the ignore library removed NODEFAULTLIB:"LIBCMT.LIB" from
the Command line display.
thanks again for the help

"David Lowndes" <Da****@example.invalidwrote in message
news:u4********************************@4ax.com...
I see the NODEFAULTLIB:"LIBCMT.LIB" but don't know how to remove it. I
can't edit it in the property pages.

Is it not showing in the Linker, Input, Ignore Specific Library entry?

If you click the ... for that item, does it show up in the inherited
values? If it's in the inherited values, is it defined in a property
manger setting?

Merry Christmas
Dave

Dec 26 '06 #5

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

Similar topics

1
by: Bartlomiej Borowicz | last post by:
of course a read instrucitio and i did everythink, but i still can't use that library :( --- Setting up Dev-C++ to build Allegro Some people prefer to use the Dev-C++ distribution to make...
11
by: Eigenvector | last post by:
I apologize if this is a trivial question, but it's always made me wonder when I have to compile my code. There are some #includes that you don't really need to reference in your library and...
0
by: dsartain | last post by:
Hi, I'm trying to use C++.NET to find which user is currently logged in. This is part of a bigger project for which I'll also need to retrieve visited URL's from the web browser as well...but one...
3
by: triplejump24 | last post by:
i LOVE doing c++ programming, but i never can get myself started! Once i figure it out, its fun but anyways here it goes... Im given a file c:\temp\hwk8input.txt, which contains the records of the...
5
by: David T. Ashley | last post by:
I've occasionally had trouble compiling and linking programs that use shared libraries. That never made a lot of sense to me, because I thought the operating system went hunting for the symbols...
6
by: WT | last post by:
Hello, Using VS2005. I have an assembly library that can be called from a Web site asp.net application or from a winform application. From this library I need to retrieve a path using simply a...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
20
by: J de Boyne Pollard | last post by:
MThe library functions which are included to allow process Mlaunch, forking, and termination, imply that it is both Mpossible and desirable for a process to fork itself. This is Ma fundamental...
3
by: Alami | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.