Tcc: Fixed bug in Linux. Now no standard libraries are added

git-svn-id: svn://ultimatepp.org/upp/trunk@2350 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2010-05-02 17:57:09 +00:00
parent b561b79ff3
commit 078883f4f4
6 changed files with 253 additions and 253 deletions

View file

@ -198,7 +198,7 @@ void *Tcc::GetSymbol(const char *funName)
{
if (!outputMemory)
throw Exc(t_("Not possible to get symbols if output to file is defined"));
unsigned long val;
unsigned long val = 0;
T_tcc_get_symbol(stateTcc, (unsigned long *)&val, funName);
if (!errorMsg.IsEmpty())
throw Exc(errorMsg);

View file

@ -7,7 +7,7 @@ class Tcc
{
public:
#if defined(PLATFORM_WIN32)
Tcc(const char *dllFile = "libs.dll");
Tcc(const char *dllFile = "libtcc.dll");
#else
Tcc();
#endif

View file

@ -19,4 +19,3 @@ file
lib/README,
License.txt;

View file

@ -10166,6 +10166,7 @@ TCCState *tcc_new(void)
/* XXX: currently the PE linker is not ready to support that */
s->leading_underscore = 1;
#endif
s->nostdlib = 1;
return s;
}

View file

@ -1,3 +1,3 @@
#ifdef __unix__
#include "lib/Tcc.c"
#include "lib/tcc.c"
#endif

View file

@ -4,16 +4,16 @@
// Tcc.cpp
T_("Tcc library not found")
esES("Librería Tcc no encontrada")
esES("Librer\303\255a Tcc no encontrada")
T_("Tcc function %s not found")
esES("Función Tcc %s no encontrada")
esES("Funci\303\263n Tcc %s no encontrada")
T_("Line %d")
esES("Línea %d")
esES("L\303\255nea %d")
T_("Not possible to add symbols if output to file is defined")
esES("No es posible añadir símbolos se se ha definido salida a fichero")
esES("No es posible a\303\261adir s\303\255mbolos si se ha definido salida a fichero")
T_("Not possible to get file if output to memory is defined")
esES("No es posible obtener fichero si se ha definido salida en memoria")
@ -22,4 +22,4 @@ T_("File name is necessary if output to file is defined")
esES("Se necesita nombre de fichero si se ha definido salida a fichero")
T_("Not possible to get symbols if output to file is defined")
esES("No es posible obtener símbolos si se ha definido salida a fichero")
esES("No es posible obtener s\303\255mbolos si se ha definido salida a fichero")