Currently there is a thread open here at: https://community.particle.io/t/undefined-reference-error-linker-error-when-compiling-from-web-ide/15890
Flattening the directory structure isn't enough to get the webIDE to link correctly at particle.io/build.