Skip to content

error: implicit declaration of function 'wav64_load' #6

Description

@lucasfcnunes
$ make
# ...
src/cutscene/cutscene_actor.c: In function 'cutscene_actor_common_init':
src/cutscene/cutscene_actor.c:30:35: error: implicit declaration of function 'wav64_load'; did you mean 'wav64_close'? [-Wimplicit-function-declaration]
   30 |         common_sound_effects[i] = wav64_load(common_sound_effect_names[i], NULL);
      |                                   ^~~~~~~~~~
      |                                   wav64_close
src/cutscene/cutscene_actor.c:30:33: error: assignment to 'wav64_t *' {aka 'struct wav64_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
   30 |         common_sound_effects[i] = wav64_load(common_sound_effect_names[i], NULL);
      |                                 ^
make: *** [/opt/libdragon/include/n64.mk:190: build/cutscene/cutscene_actor.o] Error 1
root@4a5114c68415:/spellcraft# make
    [CC] src/cutscene/cutscene_actor.c
/opt/libdragon/bin/mips64-elf-gcc -c -MMD      -march=vr4300 -mtune=vr4300 -I/opt/libdragon/mips64-elf/include/newlib_overrides -I/opt/libdragon/mips64-elf/include -include ktls.h -falign-functions=32    -ffunction-sections -fdata-sections -g -ffile-prefix-map="/spellcraft"= -ffast-math -ftrapping-math -fno-associative-math -DN64 -O2 -Wall -Werror -Wno-error=deprecated-declarations -fdiagnostics-color=always -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-parameter -Wno-error=unused-but-set-parameter -Wno-error=unused-label -Wno-error=unused-local-typedefs -Wno-error=unused-const-variable -ftrivial-auto-var-init=pattern -I/opt/tiny3d//src -Og -std=gnu17 -o build/cutscene/cutscene_actor.o src/cutscene/cutscene_actor.c
In file included from src/cutscene/../render/renderable.h:7,
                 from src/cutscene/cutscene_actor.h:11,
                 from src/cutscene/cutscene_actor.c:1:
src/cutscene/../render/../render/render_batch.h:36:5: warning: 'TPXParticle' is deprecated: Use 'TPXParticleS8' instead [-Wdeprecated-declarations]
   36 |     TPXParticle* particles;
      |     ^~~~~~~~~~~
In file included from src/cutscene/../render/../render/render_batch.h:6:
/opt/tiny3d//src/t3d/tpx.h:45:9: note: declared here
   45 | typedef struct {
      |         ^~~~~~
src/cutscene/../render/renderable.h:20:13: warning: 'TPXParticle' is deprecated: Use 'TPXParticleS8' instead [-Wdeprecated-declarations]
   20 |             TPXParticle particle_data;
      |             ^~~~~~~~~~~
/opt/tiny3d//src/t3d/tpx.h:45:9: note: declared here
   45 | typedef struct {
      |         ^~~~~~
src/cutscene/cutscene_actor.c: In function 'cutscene_actor_common_init':
src/cutscene/cutscene_actor.c:30:35: error: implicit declaration of function 'wav64_load'; did you mean 'wav64_close'? [-Wimplicit-function-declaration]
   30 |         common_sound_effects[i] = wav64_load(common_sound_effect_names[i], NULL);
      |                                   ^~~~~~~~~~
      |                                   wav64_close
src/cutscene/cutscene_actor.c:30:33: error: assignment to 'wav64_t *' {aka 'struct wav64_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
   30 |         common_sound_effects[i] = wav64_load(common_sound_effect_names[i], NULL);
      |                                 ^
make: *** [/opt/libdragon/include/n64.mk:190: build/cutscene/cutscene_actor.o] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions