Results 1 to 3 of 3

Thread: Compiling the OpenML programs

  1. #1

    Compiling the OpenML programs

    Hello dear Fabrice
    For compiling all the programs, i use from VC++6.0.I use from the "win32 consol application" projects for running the ML programs.
    when i attempt to compile the project "memtoaudio.dsw", i see many compile-time errors for fprintf. As an example for the line fprintf( fp, "%" FORMAT_LLD, ust );
    I see the following error:
    ...audioutils.c(6 : error C2146: syntax error : missing ')' before identifier 'FORMAT_LLD'
    How can i solve my problems about the FORMAT_LLD?
    Nothe that i have added these files to my project:
    audiotomem.c, audioUtils.c, utils.c, audioUtils.h, utils.h.
    I only added the ml10.lib and mlu10.ilb to my project.
    Ehsan

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Montreal
    Posts
    75

    Re: Compiling the OpenML programs

    Hello Ehsan,

    I don't have the code at hand right here, and I don't remember the details, but I thought we provided "dsp" project files as well as the "dsw" workspace file. Are you using our project file?

    In any case, 'FORMAT_LLD' is a macro that we use to hide the platform-specific details of supplying a 64-bit value to 'printf' (the actual syntax varies depending on the platform/compiler). It looks like in your case, you are not seeing the macro definition.

    This is likely caused by 1 of 2 things:
    1) you are not including the appropriate header file. Check which file defines the macro (search through all header files), and make sure you are including it. If you have not modified the example program that you are attempting to compile, then this is not the problem.
    2) you are not specifying the appropriate compile-time macro definitions. The 'FORMAT_LLD' macro is defined within '#ifdef' blocks -- so that the appropriate definition is used depending on the platform. These '#ifdef' pre-processor directives rely on other macros, which need to be defined on the command-line (using the '/D<macro>' syntax). Check your project settings to make sure you have the right macro definitions (the makefile, or our own project files, should tell you the necessary macros).

  3. #3

    Re: Compiling the OpenML programs

    Hi Fabrice
    Your guess was true. the FORMAT_LLD types are defined in mltypes.h . i included it to my project and i compiled this program.
    Thank yo very much
    Ehsan

Similar Threads

  1. rebuilding programs
    By bienator in forum OpenCL
    Replies: 2
    Last Post: 02-24-2010, 07:02 AM
  2. Compiling the simple programs
    By ehsan2004 in forum OpenGL ES general technical discussions
    Replies: 6
    Last Post: 12-06-2004, 03:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •