Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some function unfinished? #16

Open
kroulis opened this issue Jun 12, 2016 · 1 comment
Open

Some function unfinished? #16

kroulis opened this issue Jun 12, 2016 · 1 comment

Comments

@kroulis
Copy link

kroulis commented Jun 12, 2016

When I was compiling one of the examples (vrm_music_gen), the compiler gave me 3 errors that stopped me from compiling the program.

error LNK2019: unresolved external symbol "void __cdecl jdksmidi::LastEventsProlongation(class jdksmidi::MIDIMultiTrack &,int,unsigned long)" (?LastEventsProlongation@jdksmidi@@YAXAAVMIDIMultiTrack@1@HK@Z) referenced in function _main

error LNK2019: unresolved external symbol "bool __cdecl jdksmidi::WriteMidiFile(class jdksmidi::MIDIMultiTrack const &,char const *,bool)" (?WriteMidiFile@jdksmidi@@YA_NABVMIDIMultiTrack@1@PBD_N@Z) referenced in function _main  

error LNK2019: unresolved external symbol "bool __cdecl jdksmidi::AddEndingPause(class jdksmidi::MIDIMultiTrack &,int,unsigned long)" (?AddEndingPause@jdksmidi@@YA_NAAVMIDIMultiTrack@1@HK@Z) referenced in function _main 

When I went back to the library codes and started checking the functions, I could not find those three functions in the code. They only appears in the header file. So where are those functions?

From utils.h:

// add ticks time to all last track events (i.e. to all events with max time value)
void LastEventsProlongation( MIDIMultiTrack &tracks, int track_num, MIDIClockTime add_ticks );

// add "pause" after last track event
bool AddEndingPause( MIDIMultiTrack &tracks, int track_num, MIDIClockTime pause_ticks );

// write multitrack to midi file; note that src must contain right clks_per_beat value
bool WriteMidiFile(const MIDIMultiTrack &src, const char *file, bool use_running_status = true);
@rsp4jack
Copy link

the utils.h and its source file is not added in project files. Add it and rebuild to fix the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants