🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #552

Strange link error

#552
From: Ladislav Lettovsky
Date: Thu, 12 Oct 1995 00:21
49 lines
2278 bytes
Please could you help a novice:
The following program compiles fine, but when linked I get:

LINK : performing full link
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol "__beginthreadex"
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol "__endthreadex"
WinDebug/NW.exe : error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...
NW.exe - 3 error(s), 0 warning(s)

----------------------------------NW.cpp-------------------------------
#include "ALL.H"

CNumber CDuty::sID     = 0;
CNumber CMember::sID   = 0;
CNumber CPairing::sID  = 0;
CNumber CPlane::sID    = 0;
CNumber CSequence::sID = 0;

int main()
{
  // Initialize & Load data

  CSchedule*   const tpSchedule = NULL;
  CTime        const tTime = MAX_TIME;
  BOOL         const tKeepDuty = TRUE;
  BOOL         const tKeepDeadheading = TRUE;

  CScenario tScenario( tpSchedule, tTime, tKeepDuty, tKeepDeadheading );
  tScenario.Run();
  
  return( 0 );
}
------------------------------------------------------------------------

Thank you for any advice.

Ladislav

************************************************************************
 Ladislav Lettovsky     *                                              *
 36345 Ga Tech Station  *  The only way to have a friend is to be one  *
 Atlanta, GA 30332, USA *                                              *
************************************************************************
 tel(h): (404) 733-5790 *  The Logistics Institute, ISyE, Georgia Tech *
 tel(w): (404) 894-2366 *     http://akula.isye.gatech.edu/~ladislav   *
 fax(w): (404) 894-0390 *     e-mail: ladislav@isye.gatech.edu         *
************************************************************************
Technical Details
Message-ID: <45hn1t$k32@mordred.gatech.edu>
Path: arc1-ca.pugleaf.net!sdd.hp.com!gatech!gt-news!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sdd.hp.com!gatech!gt-news!news
From: Ladislav Lettovsky <ladislav@isye.gatech.edu>
Newsgroups: de.comp.lang.c++
Subject: Strange link error
Date: 12 Oct 1995 00:21:17 GMT
Organization: The Logistics Institute, ISyE, Georgia Tech
Message-ID: <45hn1t$k32@mordred.gatech.edu>
NNTP-Posting-Host: gamma.isye.gatech.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; I; 32bit)