From d6789f1384eb515f7bbe0d25762ffb82567eec38 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 2 Jul 2020 12:28:47 +0200 Subject: #971 linkage error after split /usr/bin/ld: src/cfg.o:/home/opengnsys/ogServer/src/ogAdmServer.h:25: multiple definition of `servidoradm'; src/ogAdmServer.o:/home/javi/trabajo/soleta/opengnsys/ogServer/src/ogAdmServer.h:25: first defined here /usr/bin/ld: src/cfg.o:/home/opengnsys/ogServer/src/ogAdmServer.h:26: multiple definition of `puerto'; src/ogAdmServer.o:/home/javi/trabajo/soleta/opengnsys/ogServer/src/ogAdmServer.h:26: first defined here /usr/bin/ld: src/cfg.o:/home/opengnsys/ogServer/src/ogAdmServer.h:35: multiple definition of `tbsockets'; src/ogAdmServer.o:/home/javi/trabajo/soleta/opengnsys/ogServer/src/ogAdmServer.h:35: first defined here /usr/bin/ld: src/cfg.o:/home/opengnsys/ogServer/src/ogAdmLib.h:81: multiple definition of `ndebug'; src/ogAdmServer.o:/home/javi/trabajo/soleta/opengnsys/ogServer/src/ogAdmLib.h:81: first defined here /usr/bin/ld: src/cfg.o:/home/opengnsys/ogServer/src/ogAdmLib.h:80: multiple definition of `szPathFileLog'; src/ogAdmServer.o:/home/javi/trabajo/soleta/opengnsys/ogServer/src/ogAdmLib.h:80: first defined here /usr/bin/ld: src/cfg.o:/home/opengnsys/ogServer/src/ogAdmLib.h:80: multiple definition of `szPathFileCfg'; src/ogAdmServer.o:/home/javi/trabajo/soleta/opengnsys/ogServer/src/ogAdmLib.h:80: first defined here --- src/ogAdmLib.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ogAdmLib.h') diff --git a/src/ogAdmLib.h b/src/ogAdmLib.h index fde24eb..c6c251d 100644 --- a/src/ogAdmLib.h +++ b/src/ogAdmLib.h @@ -74,11 +74,8 @@ typedef void* LPVOID; #define TRUE 1 #define FALSE 0 -// ________________________________________________________________________________________________________ -// Variables globales -// ________________________________________________________________________________________________________ -char szPathFileCfg[LONSTD],szPathFileLog[LONSTD]; -int ndebug; // Nivel de debuger +extern char szPathFileCfg[4096],szPathFileLog[4096]; +extern int ndebug; // Nivel de debuger typedef struct{ // Estructura de las tramas char arroba; // Caracter arroba siempre -- cgit v1.2.3-18-g5258