Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IP Address Pin
David Crow18-Nov-03 7:24
David Crow18-Nov-03 7:24 
GeneralRe: IP Address Pin
Member 57135818-Nov-03 12:03
Member 57135818-Nov-03 12:03 
GeneralRe: IP Address Pin
David Crow18-Nov-03 14:22
David Crow18-Nov-03 14:22 
GeneralRe: IP Address Pin
Member 57135818-Nov-03 19:08
Member 57135818-Nov-03 19:08 
GeneralRe: IP Address Pin
boxban18-Nov-03 16:18
boxban18-Nov-03 16:18 
GeneralRe: IP Address Pin
Member 57135818-Nov-03 19:11
Member 57135818-Nov-03 19:11 
GeneralRe: IP Address Pin
Member 57135820-Nov-03 6:14
Member 57135820-Nov-03 6:14 
Generalerror LNK2005 Pin
Ares218-Nov-03 6:39
Ares218-Nov-03 6:39 
Hi All!
Problem in VC++ 6.0 with such error:
tmp2.obj : error LNK2005: "struct VLCtabTag * TMNMVtab0" (?TMNMVtab0@@3PAUVLCtabTag@@A) already defined in tmp1.obj

I got such files:
tmp1.cpp
<br />
#include "tmp1.h"<br />
VLCtab l;<br />
int main()<br />
{<br />
	return 0;<br />
}<br />

------------------
tmp2.cpp
<br />
#include "tmp1.h"<br />

------------------
tmp1.h
#ifndef _TMP1_H<br />
#define _TMP1_H<br />
<br />
/* Structure to tables conversion */<br />
typedef struct VLCtabTag<br />
{<br />
	int val, len;<br />
} VLCtab;<br />
<br />
VLCtab TMNMVtab0[] = { {1,1}, {2,2}, {3,3} };<br />
<br />
#endif // _TMP1_H

------------------

...uff that's all.
Any ideas? I'm really confused since #ifndef is used! Confused | :confused:
GeneralRe: error LNK2005 Pin
David Crow18-Nov-03 6:51
David Crow18-Nov-03 6:51 
GeneralRe: error LNK2005 Pin
Ares218-Nov-03 6:57
Ares218-Nov-03 6:57 
GeneralRe: error LNK2005 Pin
David Crow18-Nov-03 6:59
David Crow18-Nov-03 6:59 
GeneralRe: error LNK2005 Pin
Ares218-Nov-03 7:24
Ares218-Nov-03 7:24 
GeneralRe: error LNK2005 Pin
Ares218-Nov-03 7:36
Ares218-Nov-03 7:36 
GeneralRe: error LNK2005 Pin
David Crow18-Nov-03 7:42
David Crow18-Nov-03 7:42 
GeneralStretchDIBits problem with 16-bit (65536) colours Pin
tchu18-Nov-03 5:40
tchu18-Nov-03 5:40 
GeneralCPU usage meter in win98 Pin
Max Rudensky18-Nov-03 5:30
sussMax Rudensky18-Nov-03 5:30 
GeneralRe: CPU usage meter in win98 Pin
alex.barylski18-Nov-03 5:45
alex.barylski18-Nov-03 5:45 
GeneralRe: CPU usage meter in win98 Pin
Max Rudensky19-Nov-03 0:12
sussMax Rudensky19-Nov-03 0:12 
QuestionHow to control many events? Pin
Azury18-Nov-03 5:28
Azury18-Nov-03 5:28 
AnswerRe: How to control many events? Pin
David Crow18-Nov-03 5:47
David Crow18-Nov-03 5:47 
GeneralActiveX with modeless Dialog Pin
AnTri18-Nov-03 5:12
AnTri18-Nov-03 5:12 
GeneralRe: ActiveX with modeless Dialog Pin
Peter Molnar18-Nov-03 13:45
Peter Molnar18-Nov-03 13:45 
GeneralRe: ActiveX with modeless Dialog Pin
AnTri18-Nov-03 23:05
AnTri18-Nov-03 23:05 
GeneralRe: ActiveX with modeless Dialog Pin
Peter Molnar19-Nov-03 4:26
Peter Molnar19-Nov-03 4:26 
Generalemail + attachement Pin
doctorpi18-Nov-03 4:47
doctorpi18-Nov-03 4:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.