Last active
May 31, 2021 23:05
-
-
Save MonteLogic/e2212bdec23632df5f163bcd01c1ba63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String returnFilePath(); | |
// | |
// | |
// | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment