home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7440 < prev    next >
Encoding:
Text File  |  1993-01-08  |  782 b   |  26 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!wupost!csus.edu!netcom.com!feustel
  3. From: feustel@netcom.com (David Feustel)
  4. Subject: CSet/2 Beta C++ Linking Problem
  5. Message-ID: <1993Jan9.001008.24880@netcom.com>
  6. Organization: DAFCO: OS/2 Software Support & Consulting
  7. Date: Sat, 9 Jan 1993 00:10:08 GMT
  8. Lines: 16
  9.  
  10. #include <iostream.h>
  11. void main(int argc,char *argv[])
  12. {
  13.     cout << "Hello, World\n";
  14. }
  15.  
  16. compiles and links correctly with no flags (i.e. static linking).
  17. The same program fails to link ( cout and one other symbol undefined)
  18. when the /Gd+ flag (dynamic linking) is used.
  19.  
  20. Does anyone know why htis happens and what the fix is?
  21. Thanks.
  22. -- 
  23. Dave Feustel N9MYI <feustel@netcom.com>
  24.  
  25.                         Happy Holidays to ALL!!!
  26.