paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] problems building test apps (with inernalexpat ??)


From: Alexander Pipelka
Subject: Re: [paragui-users] problems building test apps (with inernalexpat ??)
Date: 25 Jun 2002 19:10:06 +0200

Hehe. That's a really nice one :))

After browsing src/expat/expat.h i found that all functions are declared
for importing from a dll (Win32). Nice. Really nice :))

Ok. Please try the following:
edit src/expat/expat.h and remove the block starting with:

#ifndef XMLPARSEAPI
...
#endif

Then insert:
#define XMLPARSEAPI(type) type

Hopefully this should solve the problem.
Please report on success.

Alex


Am Die, 2002-06-25 um 18.41 schrieb address@hidden:
> 
> 
> I use mingw on Windows and paragui compiles and installs fine (./configure
> --enable-internalexpat), but the configure script of the test apps stops
> complaining about missing expat.h.
> 
> The output in the config.log is the following: What's wrong ???
> 
> NIC
> 
> g whether the C++ compiler (c++  ) works
> configure:1137: c++ -o conftest    conftest.C  1>&5
> configure:1163: checking whether the C++ compiler (c++  ) is a cross-compiler
> configure:1168: checking whether we are using GNU C++
> configure:1196: checking whether c++ accepts -g
> configure:1228: checking how to run the C preprocessor
> configure:1319: checking for a BSD compatible install
> configure:1374: checking for working const
> configure:1453: checking for mingw32 environment
> configure:1482: checking for Cygwin environment
> configure:1517: checking for executable suffix
> configure:1595: checking for paragui-config
> configure:1630: checking for PARAGUI - version >= 1.0.0
> configure:1728: c++ -o conftest.exe -g -O2 -I/usr/local/include
> -I/usr/local/include/paragui -Ic:/progra~1/FreeType/include
> -Ic:/progra~1/FreeType/include/freetype2 -I/usr/local/include
> -I/usr/local/include/SDL -Dmain=SDL_main   conftest.C  -L/usr/local/lib
> -lparagui -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -lz -lSDL_image
> -Lc:/progra~1/FreeType/lib -lfreetype -lstdc++ 1>&5
> C:\msys\1.0\local\lib/libparagui.a(pglayout.lo): In function
> `PG_Layout::Load(PG_Widget *, char const *, void (*)(int, int), void *)':
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1162: 
> undefined
> reference to `_imp__XML_ParserCreate'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1169: 
> undefined
> reference to `_imp__XML_SetUserData'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1170: 
> undefined
> reference to `_imp__XML_SetElementHandler'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1171: 
> undefined
> reference to `_imp__XML_SetCharacterDataHandler'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1172: 
> undefined
> reference to `_imp__XML_SetProcessingInstructionHandler'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1200: 
> undefined
> reference to `_imp__XML_GetCurrentColumnNumber'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1200: 
> undefined
> reference to `_imp__XML_GetCurrentLineNumber'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1200: 
> undefined
> reference to `_imp__XML_GetErrorCode'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1200: 
> undefined
> reference to `_imp__XML_ErrorString'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1199: 
> undefined
> reference to `_imp__XML_ParseBuffer'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1186: 
> undefined
> reference to `_imp__XML_GetBuffer'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/widgets/pglayout.cpp:1212: 
> undefined
> reference to `_imp__XML_ParserFree'
> C:\msys\1.0\local\lib/libparagui.a(themeloader.lo): In function
> `PG_Theme::Load(char const *)':
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:447: 
> undefined
>  reference to `_imp__XML_ParserCreate'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:450: 
> undefined
>  reference to `_imp__XML_SetUserData'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:451: 
> undefined
>  reference to `_imp__XML_SetElementHandler'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:458: 
> undefined
>  reference to `_imp__XML_ParserFree'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:469: 
> undefined
>  reference to `_imp__XML_Parse'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:470: 
> undefined
>  reference to `_imp__XML_GetCurrentLineNumber'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:471: 
> undefined
>  reference to `_imp__XML_GetErrorCode'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:471: 
> undefined
>  reference to `_imp__XML_ErrorString'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:472: 
> undefined
>  reference to `_imp__XML_ParserFree'
> //c/Mingw32/Visual-MinGW/paragui-1.0.2/src/themes/themeloader.cpp:482: 
> undefined
>  reference to `_imp__XML_ParserFree'
> configure: failed program was:
> #line 1661 "configure"
> #include "confdefs.h"
> #ifdef __cplusplus
> extern "C" void exit(int) throw ();
> #endif
> 
> #include "paragui.h"
> #include "pgapplication.h"
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> 
> char*
> my_strdup (char *str)
> {
>   char *new_str;
> 
>   if (str)
>     {
>       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
>       strcpy (new_str, str);
>     }
>   else
>     new_str = NULL;
> 
>   return new_str;
> }
> 
> int main (int argc, char *argv[])
> {
>   int major, minor, micro;
>   char *tmp_version;
> 
>   PG_Application app;
> 
>   /* This hangs on some systems (?)
>   system ("touch conf.paraguitest");
>   */
>   { FILE *fp = fopen("conf.paraguitest", "a"); if ( fp ) fclose(fp); }
> 
>   /* HP/UX 9 (address@hidden) writes to sscanf strings */
>   tmp_version = my_strdup("1.0.0");
>   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
>      printf("%s, bad version string\n", "1.0.0");
>      exit(1);
>    }
> 
>    if ((1 > major) ||
>       ((1 == major) && (0 > minor)) ||
>       ((1 == major) && (0 == minor) && (2 >= micro)))
>     {
>       return 0;
>     }
>   else
>     {
>       printf("\n*** 'paragui-config --version' returned %d.%d.%d, but the
> minimum version\n", 1, 0, 2);
>       printf("*** of PARAGUI required is %d.%d.%d. If paragui-config is 
> correct,
>  then it is\n", major, minor, micro);
>       printf("*** best to upgrade to the required version.\n");
>       printf("*** If paragui-config was wrong, set the environment variable
> PARAGUI_CONFIG\n");
>       printf("*** to point to the correct copy of paragui-config, and remove 
> the
>  file\n");
>       printf("*** config.cache before re-running configure\n");
>       return 1;
>     }
> }
> 
> 
> configure:1772: c++ -o conftest.exe -g -O2 -I/usr/local/include
> -I/usr/local/include/paragui -Ic:/progra~1/FreeType/include
> -Ic:/progra~1/FreeType/include/freetype2 -I/usr/local/include
> -I/usr/local/include/SDL -Dmain=SDL_main   conftest.C  -L/usr/local/lib
> -lparagui -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -lz -lSDL_image
> -Lc:/progra~1/FreeType/lib -lfreetype -lstdc++ 1>&5
> C:\msys\1.0\local\lib/libSDLmain.a(SDL_main.o.b): In function `console_main':
> //c/Mingw32/Visual-MinGW/SDL-1.2.4/src/main/SDL_main.c:227: undefined 
> reference
> to `SDL_main'
> configure: failed program was:
> #line 1762 "configure"
> #include "confdefs.h"
> 
> #include "paragui.h"
> #include <stdio.h>
> 
> int main() {
>  return 0;
> ; return 0; }
> 
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]