Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 702
    • Issues 702
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 39
    • Merge Requests 39
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #53

Closed
Open
Opened Oct 27, 2009 by bugzilla-migration@bugzilla-migrationReporter

Math.sqrt is not proper referenced

Submitted by Lennart Weller

Link to original bug (#599770)

Description

When trying to use GLib.Math.sqrt with a variable it results in an incorrect referenced C-code. e.g. this simple code: static void main() { double i = 5; stdout.printf("%f\n", Math.sqrt(i)); } will result in an gcc error, where as: static void main() { stdout.printf("%f\n", Math.sqrt(5)); } would work out just fine.

The complete error code: /tmp/ccCpbHwm.o: In function _main': sqrt.vala.c:(.text+0x52): undefined reference to sqrt' collect2: ld returned 1 exit status error: cc exited with status 256

valac --version: 0.7.7 OS: Debian testing/unstable

Version: 0.7.x

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#53