Menu

#847 C++ support in generic/tclDecls.h

obsolete: 8.1b3
closed-fixed
nobody
2
2001-04-16
2000-10-26
Anonymous
No

OriginalBugID: 1934 RFE
Version: 8.1b3
SubmitDate: '1999-04-26'
LastModified: '1999-04-27'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: stanton
OS: Windows NT
OSVersion: 4.0sp4 with MSVC++ 5
Machine: X86
FixedDate: '1999-04-27'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'

Name:
David Gravereaux

Comments:
This is a follow-up to a previos bug report "tclstub81.lib locks me into
release build only"

DesiredBehavior:
on line 1525 please change:

extern TclStubs *tclStubsPtr;

to be:

#ifdef __cplusplus
extern "C" {
#endif
extern TclStubs *tclStubsPtr;
#ifdef __cplusplus
}
#endif

This solves the unresolved external when using a C++ compiler due to
name decoration where we don't want it.

This patch is definitely needed.

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-16
    • labels: 104246 --> 53. Configuration and Build Tools