• 0

What this compilation error means? I cannot solve it


Question

I am making a fairly simple tictactoe game with Borland C++ Builder. But it is the first time i am making a project alone with it. I have worked with it for a few months, before, but in projects that were working. I just adjusted or added some kinds of things. My project is a win32bit thing.

 

First, i had an issue with the "onClick" event function. The 9 buttons (the game positions where we play) must have 9 different position. When i drawed the dialog, i copied an empty and basic button to have them 9. But after doing this, if i double clicked the "onClick" event of one of them, and created a new function, this function were "magically" given to all 9 buttons. And worse than that: if i went to the second button and change it in it, wanting in it alone, all the other 8 were changed 2. I had to empty the events of each button, and then create the event function. I will never reuse things in the dialogs, just because they have size or other properties that may take a bit of time to adjust. But this problem is done. I compiled the code, which did not do anything, at this time, but it worked.

 

And i kept working things to make my game algorithm implemented. After each set of things i did, i CTRL+F9 to check if anything was missed or written wrong.

 

The last thing i am trying to do is to make the "terminou" function work. It is a function which is called after each move, and it checks if the game ended with a winner, or in a draw. The code had a lot of strange warnings, first. I found it strange. But after fiddling it with my favorite text editor, Vim, i found the culprit: i accidentally delete, without noticing, the closing braces of a function which is before all the onClick functions, for the buttons.

 

All the warnings are fixed, i want to make it compile, and maybe run or run as debug it a little, before i continue. But this warning is strange to me:

 

TjogoDaVelha:: referenced from C:\[...]\VELHA.OBJ

 

"Velha" is the name of my project. It has 4 files:   velha002.cpp  velha002.dfm  velha002.h    velha.mak
 

In a previous situation with this project, i had a nonsense compiling error about functions that did not exist. But the name was a function that i tested for an event in all the button, but after the test, i removed it from all their properties. The compilation stopped working! After muuuuuuuuuch time trying various "magical rituals", i discovered the functions declarations were removed from the dialog properties and from the cpp file, but *not* from the header file. They were there... laughing at me. Humph.  Now, i work with the header file opened, and i always check it.

 

So, can you help me finding what is causing the error above?

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Well I've done a grand total of nothing, and it now clocks between 2010mhz and 1995mhz (stock is 1710mhz) and hovers around 80c, warmer than it used to, but tolerable clocks seem to have returned. Thanks for all the advice on this thread. Will review the evidence and make a choice.
    • Audacious 4.6.1 by Razvan Serea Audacious is a lightweight, open-source audio player that emphasizes simplicity, performance, and sound quality. Designed for Linux, Windows, and macOS, it supports a wide range of audio formats, internet radio streaming, and playlist management. Users can customize the interface with Winamp-style skins or modern themes, making it flexible for different preferences. Audacious also includes an equalizer, advanced audio effects, and a plugin system for extending functionality. Its low resource usage makes it especially suitable for older computers or users who value efficiency without sacrificing playback quality. Audacious key features: High audio quality – delivers clean, gapless playback with minimal distortion. Wide format support – plays MP3, FLAC, Ogg Vorbis, AAC, WAV, WMA, and more. Internet radio streaming – supports Shoutcast, Icecast, and other online streams. Winamp skin support – classic, nostalgic look for users who prefer the old-school style. Modern GTK-based interface – clean, simple UI with a more modern feel. Customizable themes – change appearance through skins and themes. Advanced playlist management – organize, save, and edit playlists with ease. Equalizer – fine-tune audio output with a built-in graphical equalizer. Audio effects – built-in DSP options like crossfade, replay gain, and more. Plugin system – extend functionality with additional components. File metadata support – displays and organizes music based on tags. Drag-and-drop support – quickly add songs or playlists. Global hotkey support – control playback without switching windows. Bit-perfect output modes – bypass system mixers for pure audio output. ReplayGain support – normalizes track loudness automatically. Cue sheet support – play entire albums from a single audio file with .cue. MPRIS2 integration – integrates with Linux desktop environments for media controls. Advanced resampling options – adjust playback quality with different resampler settings. Gapless playback – seamless transition between tracks encoded properly. Crossfade plugin – blend one song into the next smoothly. Last.fm scrobbling plugin – track listening history online. Remote control support – control Audacious via command-line or scripts. Lyrics plugin – display song lyrics if available. Alarm / timer plugin – start or stop playback at set times. SOX resampler plugin – high-quality resampling for audiophiles. Spectrum analyzer / visualization plugins – visual feedback while playing music. Headphone crossfeed effect – simulates speaker listening for headphones. Customizable buffer size – tweak latency and playback smoothness. Audacious 4.6.1 changelog: Use XDG cache dir to store temporary files (#1817) Accept embedded lyrics in more cases (#1818) Bump .so and plugin ABI versions retrospectively (#1819) Include Georgian translation (#1820) Fix build on systems using musl instead of glibc (#1823) Download: Audacious 4.6.1 | 48.2 MB (Open Source) Download: Portable Audacious 4.6.1 | 69.8 MB View: Audacious Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I really wonder if this has to do with the built in VPN or "private DNS" of browsers that trip up legal requirements like cookie consent and Cloudflare (to avoid all the botnet attacks we get). And BTW some botnets still manage to get past Cloudflare, we are constantly having to tweak it to block malicious traffic that ultimately cause a DDoS.
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      +Edouard
      197
    3. 3
      PsYcHoKiLLa
      142
    4. 4
      ATLien_0
      89
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!