• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By BillyGD

      Play Flick Football 3D @ https://gamejolt.com/games/flickfootball3d/326078
      Check out our Facebook page @ https://www.facebook.com/FlickFootball3D/
      Flick Football 3D is a turn based football game inspired by the table top classic 'Subbuteo'.
      The game is currently in very early Alpha development. There is still a lot to be done before the first proper release but I have decided to release this playable version to get as much feedback as possible.
      The only game mode currently available in this release is the 'Practice Mode' which gives you control of both teams. Either play against yourself to get used to how the game works or play against friends and family on the same computer!
      Planned Future Features Include:
      -Take control of your own custom team in the single player campaign.
      -Play in online leagues and tournaments against other players in the multiplayer mode.
      -Fully customisable stadiums to make you stand out from the rest of the players.
      -Improve your players stats and skills by playing matches and setting up training sessions.
      Flick Football 3D is available for Windows, Mac and Browser.
      Thank you for viewing my game, all feedback is greatly appreciated. I can be contacted at; BillyGDev@outlook.com
      'Flick Football 3D' is also the development name for the game and I haven't yet decided what the full release will be called, so if you have any ideas please drop me a message!
    • By drcrack
      It is a combination of fundamental RPG elements and challenging, session-based MOBA elements. Having features such as creating your unique build, customizing your outfit and preparing synergic team compositions with friends, players can brave dangerous adventures or merciless arena fights against deadly creatures and skilled players alike.

      This time with no grinding and no pay to win features.

      We're still looking for:
      1) 3D Character Artist
      2) 3D Environment Artist
      3) Animator
      4) Sound Designer
      5) VFX Artist

      Discord https://discord.gg/zXpY29V or drcrack#4575
    • By Francisco Tufr
      Hi everyone! I'm currently working on a series of books about 2D Shader Development.

      The idea is to synthesize a bunch of techniques that are specifically useful for 2D, even if they work on 3D as well.

      I released the first book last week. It's 4.99 on Amazon or free on the series website, https://www.2dshaders.com

      This is an independent initiative, I don't work for any publisher whatsoever. The contents of the books are the result of a 4-year span where I started teaching this in Argentina and USA, always making the workshop better. Now I'm expanding it to make more sense in book form.

      I'd love to hear your opinions on the idea and if you get the book let me know what you think.

      By the way, the examples are in Unity, but the concepts from the book should be easily transferable to any graphics api/engine.

      Hope you like it!
    • By RoKabium Games
      While looking out for that pesky Terrator, our little alien is doing a bit of relaxed mining down on the new gas planet "Lelantos" this weekend.... 
      #gamedev #indiedev #madewithunity #screenshotsaturday
    • By vividgamer
      I have a native iOS game (objective c, XCode build) which I am considering to port to other platforms.
      Core gameplay is based on solely on geographical maps, and custom drawing over maps. It also has Core Data. This part is complete in development.
      What is not done yet is: monetization, gamification (leaderboards, challenges) and multiplayer functionality.
      As I think more about it, I am tempted to think if this is the right time to move to a cross platform tool such as Unity. But before dedicating time to port my 5 years side-project effort in Objective C, I really want to know if its worth it.
      - Does Unity support such plugins / assets that will fulfill all my above requirements?
      - Unity Personal seems to have only 20 concurrent users - is it too costly scaling if I decide for extending to web and android platforms?
      - What is the general workflow involved in publishing to iOS, Android, PC, and web platforms while using Unity? I mean to ask about various points of signing stuff, paying fees and getting certified.
      - How long will it really take to port my entire Objective C project into Unity? I am somewhat familiar with C# but I am finding it hard fidgeting with Unity IDE as lot of things are focused around FPS and 3D while my game is still 2d - not much action involved. I seem bit overwhelmed by the list of features I see there. All in all, I do not want to lose my momentum while still making sure its portable to everywhere.
      - Any assets I could use (for free to try basis in debug) that are relevant for my game?
      - Last but not the least, are there any costs that I need to be paying upfront to Unity, for using it (apart from their monthly subscription model)? I don't understand their costing for multiplayer in conjunction with their subscription fees - if someone could kindly elaborate.
      Thanks in advance for your time reading a newbie
  • Advertisement
  • Advertisement
Sign in to follow this  

Unity Linking via preprocessor problems, and static libs with classes linker errors

This topic is 3752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having troubles with exceptions. I'm trying to catch access violations and page faults.(My Dev-Cpp debugger won't goto wherever my game crashed for some reason.) (The Win98 error says page fault, unknown module, at pos 0.) (Mainly page faults) But, it won't work. I'm using try-catch(char*) code. Is there a special way to catch these exceptions? Click here to jump to my linking via preprocessor problem. See the post after that for the classes problem. [Edited by - yellowstar on December 11, 2007 4:29:26 PM]

Share this post

Link to post
Share on other sites
You should look at Structured Exception Handling (SEH), that is the right way to handle those exceptions, you do not want to handle those exceptions using C++ exceptions since those were not meant to handle those type of issues.

Google Structured Exception Handling for more information

Share this post

Link to post
Share on other sites
Perhaps you should use an IDE with an excellent debugger, such as the free Microsoft Visual C++ Express Edition 2008, recently released. Dev-Cpp hasn't been updated in a long time.

Share this post

Link to post
Share on other sites
What I really want to know is where my game is crashing.

Is there a way to find
where the program crashed/threw the exception,
from the exception data in the catch statement?

My game uses DLLs.
This could be why my debugger isn't working right.
(I had problems with it not telling me where
it crashed before.)

My primary dev PC is Win98.
I also have a XP.

I can use VS on my XP.
It wouldn't work with the VS version on my 98.
I could use VS on my XP for debugging only,
for this project.

I'm trying to throw my own exception.
it won't work.
I just get abnormal program termination errors.

My code is something like this:


catch(char *ex)

Share this post

Link to post
Share on other sites
This game is going to be cross-platform.
(PC, Console, Handheld)
(PC = Windows, Linux, ect.)
(Console = Wii, NGC)
(Handheld = Nintendo DS)

Could somebody point me to
some tutorials/documents about
using SEH with Dev-Cpp/GNU?
(Using it with C/Cpp, without using OS things.)

Share this post

Link to post
Share on other sites
Original post by yellowstar
This game is going to be cross-platform.
(PC, Console, Handheld)
(PC = Windows, Linux, ect.)
(Console = Wii, NGC)
(Handheld = Nintendo DS)

Could somebody point me to
some tutorials/documents about
using SEH with Dev-Cpp/GNU?
(Using it with C/Cpp, without using OS things.)

SEH is a Windows only thing, AFAIK. Access violations have nothing to do exceptions in C++. What you are looking for is a debugger. If Dev-Cpp's debugger cannot meet your needs, you should investigate alternatives.

Share this post

Link to post
Share on other sites
Would static librarys compiled with GNU
work with VS Cpp?

I don't have the Windows SDK.(Dial-Up)
(I could use DL manager, but that would probably
take several nights.)
(If the above is true, would using the Dev-Cpp version of the SDK
in VS Cpp work?)
All,(or most)
Win32 things is in a static library.(I might need to move it
to DLL to get it to work.)

I don't have the OpenGL SDK either.
(I have the Dev-Cpp version)

How would I integerate oGL with VS Cpp?

VS would only be used for debugging.
The Dev-Cpp version would be the one
used for playing and ect.

Exception handling wouldn't be much use here anyway.
I already know the address it crashes at.

Share this post

Link to post
Share on other sites
Well, without a fast internet connection it will take you quite a while to download something like VC2008, let alone VC builds of any other libraries you are using.

Are you sure you have debugging symbols enabled in the Dev-Cpp project settings? (project->project options->compiler->linker->generate debugging information). Do a full rebuild and see if running in the debugger shows you where your program is dying.

If not, you could always give gdb command line program a try. Its complex, but for a simple program it will probably find your access violation.

First, you need to add your dev-cpp binary path 'C:\path\to\Dev-Cpp\bin' to you PATH environment variable, if it isn't already. Open a console (Windows key + R, type cmd and return).

PATH = "C:\path\to\dev-cpp\bin";%PATH%

Then navigate to your program (newly built with debug symbols, see above).

cd C:\my\programming\projectsgdb

Type the name of your program:

(gdb) file myprogram.exe
(gdb) run

At this point, my application crashes. Gdb prints the following output:

Starting program: C:\...\C_Helper.exe

Program received signal SIGSEGV, Segmentation fault.
0x004012f2 in foo (a=0x22ff74) at main.c:9
9 *ptr = 42;

To get a backtrace, type bt full:

(gdb) bt full
#0 0x004012f2 in foo (a=0x22ff74) at main.c:9
ptr = (int *) 0x0
#1 0x0040136e in main () at main.c:24
ptr = (int *) 0x0

I've never tried any complicated debugging with the gdb command line program, but this much is enough to give a good hint at where your access violation is occurring.

As you can see its a long procedure. It could be worth your while setting that download manager.

Share this post

Link to post
Share on other sites
I have VS Cpp and C-Sharp on my XP.
It only took one night to download
for each program.
(I'm starting to download the the 08 versions
of the above, plus the web designer.)
(But, I can only do one app per night)
(My DL manager won't work when I
attempt to have it download multiple
things in one session. I'll have to find another one for that.)

I have found out from the VS Cpp Web installer,
that it also downloads the librarys and headers
for the Windows SDK.
That elimates downloading that.
That leaves only oGL to solve.

How do I add headers and librarys,
to the default directory for them?(Like where the WinSDK things are put.)
(In VS 08)

Dev-Cpp makes sure the debugging setting is set.
If it's not set, it forces me to
rebuild it with debugging info.

I tried this code for throwing my own exceptions,
but it still does the same thing.

throw new char*("EXCEPTION!!! CRASHINGG!! HELP!!!");

catch(char *e)

Share this post

Link to post
Share on other sites
Gdb worked!(Only once...)
Dev-Cpp still dosen't find it,

According to gdb,
it's crashing at a string function.(msvcrt.dll)

Dev-Cpp says in the backtrace,
that the last called function is Reshape.
I'll need to investigate.
It is diffently crashing in the above function.
Time to find out why...

I'm having big problems with the VS Cpp 08 install.

It crashes near the middle of the
NET 3.5 framework install.

I tried removing all MS VS and NET
stuff, but that didn't fix it.

I'm going to see if
installing that seperately does anything.
(That will probably mean another overnight download.)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement