[Warning] `nul.gcda' is not a gcov data file

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

[Warning] `nul.gcda' is not a gcov data file

Post by RodrigoAmazonas »

Hi,

I've began a project with IRRLicht (fantastic!), changing the example 12 (Terrain Rendering). I've modified the project and it worked fine. Instead of that sample terrain I put a Brazil vegetational map with altitude. It got really nice. But then I've changed all the files from C:\Dev-Cpp\irrlicht-1.5\examples\12.TerrainRendering to C:\SNC, and it began showing the following:

When I do a syntax check, I get:
1 E:\SNC\main.cpp [Warning] `nul.gcda' is not a gcov data file

When I try to compile, I get:
[Linker error] undefined reference to
`_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
ld returned 1 exit status
E:\SNC\Makefile.win [Build Error] [SimNation.exe] Error 1

I googled it all and didn't come too far. Like

"Have you set the options -fprofile-arcs and/or -ftest-coverage in your
project?"

I don't know where these options are, but I think it's something related to directories, in compiler options I've added:

Library:
C:\Dev-Cpp\irrlicht-1.5\lib\gcc
C:\Dev-Cpp\irrlicht-1.5\lib\Win32-gcc

C++ Includes:
C:\Dev-Cpp\irrlicht-1.5\include

I'm running Dev-C++ 4.9.9.2, in a Pentium D, 3GHz, 2GB RAM, XP2002 SP2.

Can someone help me please? Should I post the source code here (347 lines)?
I feel, therefore I am.
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

one more thing...

Post by RodrigoAmazonas »

When I open my project in Dev-C++, I get the message:

Warning
Could not create executable output directory: "../../bin/Win32-gcc". Please check your settings

../.. means getting out of examples/12.TerrainRendering folder
bin/Win32-gcc actually exists, and the executable file inside it (12.TerrainRendering.exe) is my own modified project.

Don't know if this relates with my original problem.

Thanks in advance.
I feel, therefore I am.
grassblade
Posts: 27
Joined: Mon Jan 09, 2006 11:17 am

Post by grassblade »

Check if you have another irrlicht.dll in any other system path.
Kalango
Posts: 157
Joined: Thu Apr 26, 2007 12:46 am

Post by Kalango »

Well i got a lot of poblems with irr in Dev, so i used codeblocks and i'm with it since then. Since Dev is a bit (i mean a lot) outdated it can be pretty buggy and you may get lost with it sometimes...
Anyways, i think its best for you to try CodeBlocks or Eclipse....Dev is buggy -.-

Btw you may be having linking problems, maybe the versions of your dll and libs are wrong...dont know...
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

Post by RodrigoAmazonas »

Thank you both! I'm using Irr 1.5 which contains two irrlicht.dll, one from bin/Win32-gcc, the other from bin/Win32-VisualStudio (this folder also contains a irrKlang.dll, which I didn't tried, since I'm using Dev-C++). None of irrlicht.dll worked.

Kalango, I'm gonna try CodeBlocks.

Don't know if it helps, but the files in my folder are:

irrlicht.dll
main.cpp
main.o
makefile.win
simnation.dev //my Dev-C++ project

it didn't create a obj folder, the error message actually said it is (at least) a linker error:

[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
ld returned 1 exit status
E:\SNC\Makefile.win [Build Error] [SimNation.exe] Error 1


Thanks again,

Rodrigo.
I feel, therefore I am.
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

Post by RodrigoAmazonas »

Well, it produced a similar result in CodeBlocks. This is the Build log:

Compiling: main.cpp
Linking executable: SimNation.exe
.objs\main.o(.text+0x205):main.cpp: undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings


but this time it created a folder .objs, with a 16 KB main.o file.


I believe I'm missing some directory the compiler can't find. Here's the source code (running under irrlicht-1.5. When I exclude the device creation (indicated below), it compiles, runs and ends normally):


#include <irrlicht.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>

using namespace irr;
using namespace std;

#ifdef _MSC_VER
#pragma comment(lib, "Irrlicht.lib")
#endif


int main()
{
const bool usamouse = true;

video::E_DRIVER_TYPE driverType;

printf("Please select the driver you want for this example:\n"\
" (a) Direct3D 9.0c\n (b) Direct3D 8.1\n (c) OpenGL 1.5\n"\
" (d) Software Renderer\n (e) Burning's Software Renderer\n"\
" (f) NullDevice\n (otherKey) exit\n\n");

char i;
cin >> i;

switch(i)
{
case 'a': driverType = video::EDT_DIRECT3D9;break;
case 'b': driverType = video::EDT_DIRECT3D8;break;
case 'c': driverType = video::EDT_OPENGL; break;
case 'd': driverType = video::EDT_SOFTWARE; break;
case 'e': driverType = video::EDT_BURNINGSVIDEO;break;
case 'f': driverType = video::EDT_NULL; break;
default: return 0;
}

// create device
IrrlichtDevice *device = createDevice(driverType, core::dimension2d<s32>(640, 480)); // <---- HERE

return 0;
}
I feel, therefore I am.
Kalango
Posts: 157
Joined: Thu Apr 26, 2007 12:46 am

Post by Kalango »

Are you linking the libs and pointing the right directories of your libs?
Also, try to put the .dll in the same folder your project is.
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

Post by RodrigoAmazonas »

That's exactly the point: which directories are necessary to indicate (menu Settings>Compiler and Debuger>Search directories>Compiler|Linker|Resource compiler) to change Example 12 (TerrainRendering) for a different directory (like C:\TR)?

Yes, I did put the dll in the project (main.cpp) and in the .exe directory (bin/Debug|Release) in codeblock and dev-cpp...
I feel, therefore I am.
Kalango
Posts: 157
Joined: Thu Apr 26, 2007 12:46 am

Post by Kalango »

Well, try to check the tutorials, the explain pretty much everything...
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

Post by RodrigoAmazonas »

Thank you Kalango, I've read and re-read a lot of tutorials, but couldn't find this specific information: how to change irrlicht examples folder. I believe it's actually simple, but I couldn't figure it out.

I'll keep searching and working in my project inside irrlicht original folder for now. Thanks if anyone can clarify this (and maybe it could go to irrlicht tutorial too).
I feel, therefore I am.
RodrigoAmazonas
Posts: 24
Joined: Mon May 25, 2009 2:18 pm
Location: Brazil
Contact:

Post by RodrigoAmazonas »

For the case anyone run into a similar problem:

Project options:
Search directories:
Compiler:
......irrlicht-1.5\include
Linker:
......irrlicht-1.5\lib\Win32-gcc (or anyone you're using)

and
Linker settings:
Link libraries:
......irrlicht-1.5\lib\Win32-gcc\libIrrlicht.a

That's all!
I feel, therefore I am.
Post Reply