Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8645449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:33:17+00:00 2026-06-12T12:33:17+00:00

Please help to build my project, i gave up after 2nd hour. That is

  • 0

Please help to build my project, i gave up after 2nd hour.
That is how it looks like:
Solution Explorer

BrickClass.h

 - #include"header.h"

header.h

 - #pragma once
 - #include windows.h
 - #include windowsX.h
 - #include tchar.h
 - #include commctrl.h
 - #include "matrixClass.h"
 - #include "resource.h"

mainClass.h

 - #include "header.h"
 - #include "brickClass.h"

matrixClass.h

 - #include cstdlib
 - #include cstdio
 - #include math.h

brickClass.cpp

 - #include "brickClass.h"

main.cpp

 - #include "mainClass.h"

mianClass.cpp

 - #include "mainClass.h"

the error

What i need to do to make him happy?I was tried a lot of variants but cant figure out HOW..?
Appreciate your help.
The project is Here : http://www.filehosting.org/file/details/381812/Tetris.rar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:33:18+00:00Added an answer on June 12, 2026 at 12:33 pm

    If you’re giving up after the 2nd hour, this probably isn’t the right industry for you 🙂 There’ll be times when you’ll have spent days trying to solve a problem, kicking yourself at the end because it was so simple in retrospect.


    Anyway, on to the problem at hand. It’s almost certainly because you have code in your BrickClass header file.

    By including that header file in both main.cpp (via mainClass.h) and BrickClass.cpp, each of the object files gets an independent copy of the code.

    Then, when you try to link those object files together, the linker finds that there are two copies.

    Header files should generally contain declarations, like extern int i; or function prototypes such as int xyzzy (void);.

    The definitions, like int i; and functions such as int xyzzy (void) {return 42;}, should only be placed in the “regular” source files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please help, I'm going slightly mad!! I'm using Eclipse-generated antfiles to build a project
Any one please help me to build a horizontal bar graph in my android
Please help to the newbie in WPF! I need to build a TreeView with
please help me arrange these 3 buttons horizontally like this photoshopped image: Please take
i'm a newbie, so please help ;-) I build a small RoR web application
Please help, it's my studying project. It work locally but not online: Hello, it
I have a project that ask me to build a currency converter, i already
Please help me with using the DrScheme built-in function filter. create a function hello
Please help me somebody to convert unicodestring into string This is how i am
Please help me with this update query. I COMPLETELY understand how redundant this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.