Thread View: cn.bbs.comp.program
2 messages
2 total messages
Started by ����
Sun, 30 Nov 1997 00:00
Re: ����ȫ�ֱ���
Author: ����
Date: Sun, 30 Nov 1997 00:00
Date: Sun, 30 Nov 1997 00:00
25 lines
1673 bytes
1673 bytes
�� �� iambug.bbs@bbs.sjtu.edu.cn (���) �Ĵ������ᵽ: �� : �� �� xixi.bbs@bbs.whnet.edu.cn (������) �Ĵ������ᵽ: �� : : ��λ���ˣ� : : ����VC++��project��APPͷ�ļ��ж�����һ��ȫ�ֱ���������ʱ����������Ϣ: : : testDlg.obj : error LNK2005: "int xy" (?xy@@3HA) already defined in test.obj : : testDlg.obj : error LNK2005: "int xy" (?xy@@3HA) already defined in test.obj : : Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols : : found : : ���Ǻ�ԭ��Ӧ���Ķ���ζ��壿 : : ��л���� : ��ͷ�ļ��ж����������������ظ�������� : ������cpp������test.cpp���ж��壺int xy; : ��ͷ�ļ��м��ϣ�extern int xy; : It's all OK? I am a bug. Ҳ�����ڰ�ͷ�ļ���.CPP�м���: #ifndef __NAMEOFheadfile_h #define __NAMEOFheadfile_h #include "NAMEOFheadfile.h" #endif ���Ա����ظ���. -- [m[1;37m�� ��Դ:���������� BBS bbs.nease.net��[FROM: ppp76.hz.zj.cn][m
Re: ����ȫ�ֱ���
Author: kaka
Date: Wed, 03 Dec 1997 00:00
Date: Wed, 03 Dec 1997 00:00
34 lines
2159 bytes
2159 bytes
���� wrote in message <3Lj7il$TL1@bbs.nease.net>... >�� �� iambug.bbs@bbs.sjtu.edu.cn (���) �Ĵ������ᵽ: �� >: �� �� xixi.bbs@bbs.whnet.edu.cn (������) �Ĵ������ᵽ: �� >: : ��λ���ˣ� >: : ����VC++��project��APPͷ�ļ��ж�����һ��ȫ�ֱ���������ʱ����������Ϣ: >: : testDlg.obj : error LNK2005: "int xy" (?xy@@3HA) already defined in test.obj >: : testDlg.obj : error LNK2005: "int xy" (?xy@@3HA) already defined in test.obj >: : Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols >: : found >: : ���Ǻ�ԭ��Ӧ���Ķ���ζ��壿 >: : ��л���� >: ��ͷ�ļ��ж����������������ظ�������� >: ������cpp������test.cpp���ж��壺int xy; >: ��ͷ�ļ��м��ϣ�extern int xy; >: It's all OK? I am a bug. > >Ҳ�����ڰ�ͷ�ļ���.CPP�м���: >#ifndef __NAMEOFheadfile_h >#define __NAMEOFheadfile_h >#include "NAMEOFheadfile.h" >#endif >���Ա����ظ���. > ���֣������������Ѿ�����˺ܺõĽ��������������ķ����� ���Ͳ�һ���У���Ϊ��testDlg.cpp��test.cpp��ֻ��Ҫ����Include ͷ�ļ�һ�Σ��ͻ�ʹȫ�ֱ���xy���������Ρ�������������ֹͬ һ��.cpp�ж�ͬһ��ͷ�ļ��Ķ�ΰ�ģ������������
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads