This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Errors when building intrinsic project

Errors when building intrinsic project

 

Try to build c66_cmpy_test part of the intrinsic project.  The default installation is in c:\ti\intrinsic

Operating system:  Windows 7

The tool that I use:  Visual Studio 2010 Professional

I added the source files in subdirectory unit test and added include path to C6xSim and added the TMS320C66X pre-processor definition

 

Here are the errors that I get – what do I miss?  Where is the definition of reg32?

 

1>Build started 8/22/2012 8:27:51 AM.

1>_PrepareForClean:

1>  Deleting file "Debug\testRan.lastbuildstate".

1>InitializeBuildStatus:

1>  Touching "Debug\testRan.unsuccessfulbuild".

1>ClCompile:

1>  c66_cmpy_intrins_test.c

1>  C6xSimulator_test.c

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(68): error C2079: 'f32' uses undefined union 'reg32'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(69): error C2079: 'a40' uses undefined union 'reg40'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(69): error C2079: 'b40' uses undefined union 'reg40'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(69): error C2079: 'c40' uses undefined union 'reg40'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(69): error C2079: 'e40' uses undefined union 'reg40'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(70): error C2079: 'a64' uses undefined union 'reg64'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(70): error C2079: 'c64' uses undefined union 'reg64'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(70): error C2079: 'e64' uses undefined union 'reg64'

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(175): error C2224: left of '.x2' must have struct/union type

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(176): error C2224: left of '.x2' must have struct/union type

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(177): error C2224: left of '.x1' must have struct/union type

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(177): error C2224: left of '.x1u_d' must have struct/union type

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(177): error C2198: '_dtol' : too few arguments for call

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(178): error C2224: left of '.x2' must have struct/union type

1>c:\ti\intrinsic\unit_test\c6xsimulator_test.c(178): error C2224: left of '.x2' must have struct/union type

  • The directories c66_cmpy_test and unit_test each contain a separate test.  The files in those directories are not to be combined together.  Each test directory contains a makefile.  This makefile presumes you are building with Cygwin gcc, or a compiler similar to it.  Please try to work out the details of the build by inspecting these makefiles.

    Thanks and regards,

    -George

  • George

    Is there any document that describe how to run the test using Cygwin or even the fact that one needs Cygwin?

     

    By the way, I am sure that the file in test are needed for any other project.  Don't you think so?

     

    Ran

  • ran35366 said:
    s there any document that describe how to run the test using Cygwin or even the fact that one needs Cygwin?

    No.  Just the make files.  Cygwin is not strictly required.  It is probably easier to use the makefiles in a Unix-like environment like Cygwin.  These makefiles can probably be adapted to use the MicroSoft compiler.  But I've never tried.

    ran35366 said:
    By the way, I am sure that the file in test are needed for any other project.  Don't you think so?

    No.  The readme provides detailed instructions on using the intrinsics implementation in your code.  The same is not true of the associated tests.

    Thanks and regards,

    -George