Author Topic: C++ Error help  (Read 6619 times)

0 Members and 1 Guest are viewing this topic.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
C++ Error help
« on: January 28, 2012, 01:44:07 pm »
im trying to compile and run my program (C++)
but i keep getting the errors...
In function '_mingw_CRTStartup':
[Linker error] undefined reference to '__dyn+tls_init_callback'
[Linker error] undefined reference to '__cpu_features_init'
i:\gw\lib\crt2.o(.text+0x8) Id returned 1 exit status
This seems to only happen while TiLP2 is installed, and i really
dont want to keep installing and unistalling all the time D:
« Last Edit: January 28, 2012, 01:50:29 pm by hellninjas »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: C++ Error help
« Reply #1 on: January 28, 2012, 01:55:57 pm »
What are you compiling?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: C++ Error help
« Reply #2 on: January 28, 2012, 01:56:58 pm »
Its just a simple character maker for a game I play with friends at the school :D
Download is below.

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: C++ Error help
« Reply #3 on: January 28, 2012, 02:05:46 pm »
Well, the problem is that MinGW can't "connect" with it's internal parts. I can't really help you with fixing MinGW but if you got Code::Blocks and put your code in there, it should work fine.
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: C++ Error help
« Reply #4 on: January 28, 2012, 02:14:08 pm »
Yep, it's probably your IDE setup. The code itself should compile fine. Make sure you have a C++ project.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: C++ Error help
« Reply #5 on: January 28, 2012, 06:10:23 pm »
does not having <cstdlib> and <time.h> headings matter?
cuz I downloaded source code and it only had iostream header, and at least for my IDE (Code::Blocks) srand() and time() functions need cstdlib and time.h headings


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: C++ Error help
« Reply #6 on: January 28, 2012, 08:30:50 pm »
Yes, you need to include those header files.
EDIT: even if it does compile fine on some systems (which it shouldn't be able to, but oh well), it's better to include the headers so it's obvious. Also, not including the headers could be the source of the errors.
« Last Edit: January 28, 2012, 08:33:07 pm by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results: