fixed a bug: on windows, you must first add symbol, then compile