c - About g++ -D in csh -


i have csh c code follow:

foreach (coarse_static, coarse_dynamic, fine_static, fine_dynamic)     foreach j (1 2 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60)        g++ -o proj2 project2.cpp -o3 -lm -openmp -d=$i -dnumt=$j        ./proj2 >> out      end      echo '\n' >> out end 

i have problem -d=$i, know incorrect, don't know how modify express:

#define coarse_static 

does tell me how use it?

just don't put = sign if need define macro.

g++ ... -d$i 

also have comas , separator in first list, , not in second. second correct , should remove comas in first. (otherwise you'll try define macro corestatic,.)


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -