Results 1 to 4 of 4

Thread: Problem with vector definition

  1. #1
    Join Date
    Nov 2008
    Posts
    1,185

    Problem with vector definition

    I developed a program that captures a sound. It then performs the processing of these sounds and displays the result on a graphical interface. I use VC++ 2008 in this program.

    I have a file text.h which defines the graph matrix. This matrix is called in both classes and in the main. When I include it in the parent class, the program is built but when it stops the execution after capturing. When I use a precompiled header stdafx, the project doesn't work. What should I do? Can you help me?

  2. #2
    Join Date
    May 2008
    Posts
    945

    Re: Problem with vector definition

    Add
    Code:
    #include "text.h"
    in your stdafx.h file.

  3. #3
    Join Date
    Nov 2008
    Posts
    1,185

    Re: Problem with vector definition

    But I get the error if I do so. The error that I have for the main and for a class is:

    error LNK2005: "unsigned char (* rasters) [13]" (? rasters 3PAY0N @ @ @ EA) already defined in Display1. obj
    1> Processing1. Obj: error LNK2005: "unsigned char (* rasters) [13]" (? Rasters 3PAY0N @ @ @ EA) already defined in Display1. Obj

  4. #4
    Join Date
    May 2008
    Posts
    945

    Re: Problem with vector definition

    Is there a
    Code:
    #pragma once
    at the beginning of your file text.h? This may be the problem of ntdll.dll also.

Similar Threads

  1. Function problem with Vector Class
    By Vodka in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 12:52 AM
  2. Problem in reading vector
    By Gunner 1 in forum Software Development
    Replies: 5
    Last Post: 03-02-2010, 03:59 AM
  3. Replies: 3
    Last Post: 24-11-2009, 11:51 PM
  4. Problem of reading High-definition video
    By Jacek in forum Monitor & Video Cards
    Replies: 3
    Last Post: 29-12-2008, 10:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,060,177.09069 seconds with 16 queries