Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - migf1

Pages: [1]
1
C / CSFML 2.3 - Entry point not found in dyamic dll
« on: June 26, 2015, 11:38:58 am »
Hello,

I just tried to give CSFML 2.3 a try, before going to SDL2, but got missing functions from the dynamic libs when trying to run the sample program from the docs. More specifically...



That's for audio, but same thing happens with other modules too. I'm using mingw 4.8.1 (not mingw-w64, nor tdm-gcc) on Windows 8.1

Steps I took for installing the lib:

1. Downloaded official v2.3 pre-compiled Visual C++ / GCC - 32-bit binaries.
2. Extracted to c:\unix\libs
3. Put c:\unix\libs\csfml\bin to Window's PATH
4. compiled with:
Code: [Select]
gcc example1.c -o example1.exe -std=c99 -g3 -Wall -Wextra -pedantic -IC:\unix\libs\csfml\include -LC:\unix\libs\csfml\lib\gcc -lcsfml-graphics -lcsfml-audio -lcsfml-window -lcsfml-system
Any pointers would be greatly appreciated.

On a side note, I tried to build from sources (also downloaded from the official page, I linked above) by following this guide (its for SFML but I thought the process would be the same).

Anyway, I'm not familiar with cmake, and frankly I can't spend time to do so right now. So, I had to download cmake too before following the guide. No success. The GUI's configurator first complained about finding sh in the path and suggested to use "MSYS makefiles" instead of "MinGW makefiles". Did that, then it complained abound not finding FindSFML.cmake and some other stuff.

At that point I simply gave up!

Please note that I've successfully built quite a few libs via the standard ( ./configure -prefix=INSTALL_PATH; make; make install) procedure in msys.

Thanks in advance for any responses I may get.

EDIT:

Just tried v2.2 and v2.1 pre-compiled binaries, they both work fine! So it must be something specific to the v2.3 binaries.

2
C / CSFML static linking & dlls
« on: December 22, 2013, 02:53:28 am »
Hello everybody, my 1st post here (btw, big thanks for C/SFML).

I've just set up CSFML 2.1 to give it a go, on a vanilla mingw32 toolchain, with gcc 4.7.0 on Win XP SP3...

Code: [Select]
> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/unix/mingw/bin/../libexec/gcc/mingw32/4.7.0/lto-wrapper.e
xe
Target: mingw32
Configured with: ../gcc-4.7.0/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-
with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.0 (GCC)

No problems, all is fine with the sample code written with notepad++ and compiled via the command line.

But am I supposed to have CSFML's bin folder in the PATH environment variable, even when I'm linking statically? If I don't, the runtime complains it cannot find the CSFML dll's...

Code: [Select]
gcc -g3 -std=c99 -Wall -Wextra -DSFML_STATIC test.c -o test.exe -Ic:/unix/csfml/include -Lc:/unix/csfml/lib/gcc -lcsfml-graphics -lcsfml-audio -lcsfml-window -lcsfml-network -lcsfml-system -Wl,--subsystem,windows

I took a wild guess and also defined -DCSFML_STATIC... did no difference.

Thanks in advance.

Pages: [1]
anything