Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

__FILE__, __LINE__ 1

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
Hey there guys, I'm involved in porting to NT from HPUNIX a rather large prog, I noticed I'm getting unresolved symbols and within the declarations of these functions I'm getting __FILE__ and __LINE__ instead of arguments. Can anyone tell me what these are?

Thanks a bundle
 
Never mind. Include at the first StdAfx.h John Fill
1c.bmp


ivfmd@mail.md
 
Well that didn't work, but here's my stdafx.h

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if !defined(AFX_STDAFX_H__DF67CBC4_6A4B_11D4_A904_A26D15DC0C30__INCLUDED_)
#define AFX_STDAFX_H__DF67CBC4_6A4B_11D4_A904_A26D15DC0C30__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers

#include <windows.h>

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__DF67CBC4_6A4B_11D4_A904_A26D15DC0C30__INCLUDED_)



Perhaps you could tell me why?
 
All the cpp files, you sould put the first line #include&quot;StdAfx.h&quot; John Fill
1c.bmp


ivfmd@mail.md
 
Well actually I shouldn't say it didn't work, the warning that the function with the __FILE__ and __LINE__ declarations was undefined went away, but the unresolved symbols remain
 
Are all the cpp files present in project? See in the left window all files. If some files are not present do right click on the project, add files what you need. John Fill
1c.bmp


ivfmd@mail.md
 
Well that's the thing, I'm porting fixed libraries trying to form dlls. Some of the unresolved symbols come from source in other libraries but I'm hesitant to include them because they just give rise to further unresolved errors. Why wouldn't including the header file be enough to resolve the link errors?
 
I'd also like to note that the unresolved symbols are all externs and the functions are extern &quot;C&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top