Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-05-2009
Member
 
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?
Reply With Quote
  #2  
Old 14-05-2009
Member
 
Join Date: May 2008
Posts: 945
Re: Problem with vector definition

Add
Code:
#include "text.h"
in your stdafx.h file.
Reply With Quote
  #3  
Old 14-05-2009
Member
 
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:

Quote:
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
Reply With Quote
  #4  
Old 14-05-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Problem with vector definition"
Thread Thread Starter Forum Replies Last Post
Function problem with Vector Class Vodka Software Development 5 12-02-2010 12:52 AM
Problem in reading vector Gunner 1 Software Development 5 03-02-2010 03:59 AM
Definition Update for Windows Defender - KB915597 (Definition 1.3. prash_mate Windows Security 3 24-11-2009 11:51 PM
Problem of reading High-definition video Jacek Monitor & Video Cards 3 29-12-2008 10:29 AM


All times are GMT +5.5. The time now is 08:55 PM.