0
0

When attempting to compile the standalone using Dev-C++ I get the following errors:

804 main.c
ANSI C++ forbids implicit conversion from `void *’ in assignment

which corrolates to this line of code

LowPassBuffer = calloc(FSOUND_DSP_GetBufferLength()+256, 4);

myfont = GetStockObject(DEFAULT_GUI_FONT);

there are approximately 8 of the same errors correlated to either calloc or GetStockObject. I’ve linked to the Dev-C++ library recommended in the ReadMe & I’ve included ‘stdlib’ for calloc. Can anyone tell me what I’m doing wrong?

  • You must to post comments
0
0

Karl? The Fmod library from the link U posted has instructions on how to make a library. When I went to the site it’s all in foreign lang. I cliqued on the British Flag, but it remains in German. Is there anyway I could find a set of instructions for making a library file?

  • You must to post comments
0
0

Looks like you need to typecast the return value to the correct type…

LowPassBuffer = (char *)calloc(FSOUND_DSP_GetBufferLength()+256, 4);

Visual C++ is not strict on ANSI compliance, so it lets things like this pass.

  • You must to post comments
0
0

uh ?? The librairie was done by me, the instructions are in english but the website is in French (it s normal for a french guy like me :smile:
However you can manually create your own library by invoking this command line :

dlltool -U –output-lib libfmod.a –dllname fmod.dll –def fmod.def

(fmod.dll and fmod.def must be in the same place)

  • You must to post comments
0
0

Exactly, Sly! ThanX. Now to phase II. As earlier stated I use Dev-C++ & have linked to the ‘libfmod.a’ library. When I compiled it, I come up with a ton of ‘undefined reference’ linker errors. Then I tried the others. The bc library handles the ton of errors, however, I’m stuck with dys:

c:fmodapi340lowpass.o: In function LowPass_Filter':
//c/fmodapi340/samples/fmod/lowpass.c:53: multiple definition of
ProtoCoef’

c:fmodapi340main.o(.bss+0x0):main.c: first defined here
C:fmodapi340apilibfmodbc.lib: file not recognized: File format not recognized

Have any Dev-C++ users encountered similarities & if so can U point me in a direction?

  • You must to post comments
0
0

So does this mean the libfmod.a that ships with fmod 3.40 is faulty? I had a similar problem and tracked down this forum to find the solution. Everything now works 100% (thanks for the help – excellent library)! FYI I tried compiling with BOTH Cygwin and the ming compiler in the Dev-C++ package and came up with those linker errors regardless.

  • You must to post comments
0
0

fmodbc.lib is compiled for Borland C++, so I am not surprised that Dev-C++ does not recognize the file format. I’m not sure which library Dev-C++ should use.

  • You must to post comments
0
0

Yup… Just downloaded v340 again, and I’m up and running. :smile:

  • You must to post comments
0
0

Dev-C++ is an full-featured Integrated Development Environment (IDE) for Win32 and Linux. It uses GCC, Mingw or Cygwin as compiler and libraries set.

SourceForge page
[url:21bz1n9s]http://sourceforge.net/projects/dev-cpp[/url:21bz1n9s]

Project home page
[url:21bz1n9s]http://www.bloodshed.net/[/url:21bz1n9s]

A C++ development environment written in Delphi. I love the irony. :smile:

  • You must to post comments
0
0

I ve just read your post and found an issue, in this archive you will find the appropriate lib and a simple description of what i ve done :

http://www.multimania.com/xxkarlkoxxx/Prog/Contrib.rar

It was tested with DevC++ with CygWin and the simple samples compiled with no problemes or warnings.

  • You must to post comments
0
0

Excellent Link kk! That took kare of it. Unfortunately I still get these errors:

c:fmodapi340lowpass.o: In function LowPass_Filter':
//c/fmodapi340/samples/fmod/lowpass.c:53: multiple definition of
ProtoCoef’

c:fmodapi340main.o(.bss+0x0):main.c: first defined here

c:fmodapi340main.o: In function SetupInterface(HINSTANCE__ *, char *)':
//c/fmodapi340/samples/fmod/main.c:2163: undefined reference to
InitCommonControls@0′

Can someone help?

  • You must to post comments
0
0

I ve finished to set a complet .dev project of the FMOD sample, all work perfectly (some minor warnings at compile time), grab it here :

http://www.multimania.com/xxkarlkoxxx/Prog/FmodCyg.rar

  • You must to post comments
0
0

Excellent links Karl! I still get the same linker errors. I checked linker options & compiler options, but I came up NULL. Is there another library that needs to be linked, like dsound or something that I’m forgettin?

  • You must to post comments
0
0

Only comctl32 and fmod libs are needed, if this doesn’t work, i think it s more due to your installation (reinstalle mingw32 or cygwin to another clean place for example).
Note : uncheck the “Compile C++ project” and check “Don’t create a console” in the Project–>options (Alt + P).

  • You must to post comments
0
0

Adding the cmctrl32 gets rid of this error.

c:fmodapi340main.o: In function SetupInterface(HINSTANCE__ *, char *)':
//c/fmodapi340/samples/fmod/main.c:2163: undefined reference to
InitCommonControls@0′

But the others remain. Then it creates an executable when i uncheck the ‘compile C++’ box, but it crashes the entire ‘Dev-C++’ Program & I have to Ctl-Alt-Del out of it.

I’ve built plenty of projects B4, none this big, so I know its not a config problem.

This problem has me stumped…reassessment time.

  • You must to post comments
Showing 14 results
Your Answer

Please first to submit.