Skip to content

Instantly share code, notes, and snippets.

@MonteLogic
Last active May 31, 2021 23:05
Show Gist options
  • Save MonteLogic/e2212bdec23632df5f163bcd01c1ba63 to your computer and use it in GitHub Desktop.
Save MonteLogic/e2212bdec23632df5f163bcd01c1ba63 to your computer and use it in GitHub Desktop.
Error
Linking simpleAudioPlayer - App
/usr/bin/ld: build/intermediate/Debug/LoadSaveXml_6eb31df5.o: in function `LoadSaveXml::writeData(juce::String)':
/home/deck/Documents/ManyVoxV1/Builds/LinuxMakefile/../../Source/LoadSaveXml.cpp:166: undefined reference to `LoadSaveXml::returnFilePath()'
collect2: error: ld returned 1 exit status
make: *** [Makefile:103: build/simpleAudioPlayer] Error 1
String returnFilePath(){
auto dirX = juce::File::getCurrentWorkingDirectory();
auto numTriesX =0;
while (! dirX.getChildFile ("Resources").exists() && numTriesX++ < 15)
dirX = dirX.getParentDirectory();
auto myxmlfileX = dirX.getChildFile ("Resources").getChildFile ("FilePaths.xml");
auto outputNameofFileX = myxmlfileX.getFullPathName();
std::cout << outputNameofFileX << std::endl;
return outputNameofFileX;
};
void LoadSaveXml::writeData(String currentPath){
std::cout << outputNameofFile << std::endl;
juce::File* copyFile = &myxmlfile;
auto copyReturnable = returnFilePath();
std::cout << copyReturnable << std::endl;
if(copyFile->exists()){
std::cout << "_" << std::endl;
}
if(!copyFile->exists()){
std::cout << "!" << std::endl;
}
}
String returnFilePath();
//
//
//
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment