CUDA 3.0 Problem

Discussion in 'Mac Programming' started by TedKord, Apr 15, 2010.

  1. TedKord macrumors newbie

    Joined:
    Apr 15, 2010
    #1
    Hi all

    I've just installed CUDA 3.0 (Driver, Toolkit and SDK). However, when I go to compile the examples, I get the following error:

    cc1plus: error: unrecognized command line option "-arch"
    make: *** [obj/i386/release/bank_checker.cpp.o] Error 1

    Could someone tell me how to resolve this?

    Thanks

    Ted

    N.B:
    I've tried to register on the NVIDIA Forum but for some reason, I've yet to receive the confirmation email.
     
  2. Sander macrumors 6502

    Joined:
    Apr 24, 2008
    #2
    Sounds like something isn't set up correctly and the wrong compiler is being invoked; cc1plus is the C++ compiler from GCC and as far as I know, the "architecture" flag is -march and not -arch.

    Sorry if this is vague - I didn't take the time to download the SDK myself.
     

Share This Page