Synatx error "error PRJ0003 : Error spawning 'rc.exe'."
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Synatx error "error PRJ0003 : Error spawning 'rc.exe'."

  1. #1
    Join Date
    Jun 1999
    Posts
    488

    Synatx error "error PRJ0003 : Error spawning 'rc.exe'."

    Hi,
    I am trying to run an array of structure program VC2008.
    The program is:

    Code:
    #include "stdafx.h"
    #include "stdio.h"
    #include "string.h"
    
    
    struct student{
    	char name[30];
    	int rollno;
    	int marks;
    };
    void inputStructArr(student []);
    void displayStructArr(student[]);
    
    void inputStructArr(student studArr[10]){
    	for(int i=0; i<10;++i){
    		printf("Enter the name\n");
    		gets(studArr[i].name);
    		printf("Enter rollno\n");
    		scanf("%d",&studArr[i].rollno);
    		printf("Enter marks\n");
    		scanf("%d",&studArr[i].marks);
    	}
    }
    
    
    void displayStructArr(student studArr [10]){
    	for(int i=0; i<10;++i)
    		printf("name=%s rollno=%d marks=%d \n", studArr[i].name, studArr[i].rollno,studArr[i].marks);
    		
    }
    
    
    int _tmain(int argc, _TCHAR* argv[])
    {
    	student studentArr[10];
    
    	inputStructArr(studentArr);
    	displayStructArr(studentArr);
    	return 0;
    }
    I am getting following warning and messages:

    Code:
    1>------ Build started: Project: StructArr, Configuration: Debug Win32 ------
    1>Compiling...
    1>StructArr.cpp
    1>c:\vcprog\structarr\structarr\structarr.cpp(20) : warning C4996: 'gets': This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(279) : see declaration of 'gets'
    1>c:\vcprog\structarr\structarr\structarr.cpp(22) : warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(306) : see declaration of 'scanf'
    1>c:\vcprog\structarr\structarr\structarr.cpp(24) : warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(306) : see declaration of 'scanf'
    1>Compiling manifest to resources...
    1>Project : error PRJ0003 : Error spawning 'rc.exe'.
    1>Build log was saved at "file://c:\VCProg\StructArr\StructArr\Debug\BuildLog.htm"
    1>StructArr - 1 error(s), 3 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    I cant understand the syntax error. Can somebody plz guide me?

    Zulfi.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: Synatx error "error PRJ0003 : Error spawning 'rc.exe'."

    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center